Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: limit registry username column width #5718

Merged
merged 1 commit into from Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -257,7 +257,7 @@ const processPasswordElement = (node: HTMLInputElement, registry: containerDeskt
<div class="container bg-charcoal-600 rounded-md p-3">
<!-- Registries table start -->
<div class="w-full border-t border-b border-gray-900" role="table" aria-label="Registries">
<div class="flex w-full" role="rowgroup" aria-label="header">
<div class="flex w-full space-x-2" role="rowgroup" aria-label="header">
<div class="flex-1 text-left py-4 pl-5 text-sm font-bold w-auto" role="columnheader">Registry Location</div>
<div class="text-left py-4 text-sm font-bold w-1/4" role="columnheader">Username</div>
<div class="text-left py-4 text-sm font-bold w-2/5" role="columnheader">Password</div>
Expand All @@ -269,7 +269,7 @@ const processPasswordElement = (node: HTMLInputElement, registry: containerDeskt
class="flex flex-col w-full border-t border-gray-900"
role="row"
aria-label="{registry.name ? registry.name : registry.serverUrl}">
<div class="flex flex-row items-center pt-4 pb-3">
<div class="flex flex-row items-center pt-4 pb-3 space-x-2">
<div class="flex-1 pl-5 pr-5 text-sm w-auto m-auto" role="cell">
<div class="flex w-full h-full">
<div class="flex items-center">
Expand All @@ -295,7 +295,7 @@ const processPasswordElement = (node: HTMLInputElement, registry: containerDeskt
</div>

<!-- Username -->
<div class="text-sm w-1/4 m-auto" role="cell">
<div class="text-sm w-1/4 m-auto text-ellipsis overflow-hidden max-x-32" role="cell">
{#if originRegistries.some(r => r.serverUrl === registry.serverUrl)}
<div class="text-left h-7 pr-5 mt-1.5 mb-0.5 text-sm w-full">
<input
Expand Down Expand Up @@ -433,7 +433,7 @@ const processPasswordElement = (node: HTMLInputElement, registry: containerDeskt
{#each $registriesSuggestedInfos as registry, i (registry)}
<!-- Add new registry form start -->
<div
class="flex flex-col w-full border-t border-gray-900"
class="flex flex-col w-full border-t border-gray-900 space-x-2"
role="row"
aria-label="{registry.name ? registry.name : registry.url}">
<div class="flex flex-row items-center pt-4 pb-3">
Expand Down Expand Up @@ -540,7 +540,7 @@ const processPasswordElement = (node: HTMLInputElement, registry: containerDeskt

{#if showNewRegistryForm}
<!-- Add new registry form start -->
<div class="flex flex-col w-full border-t border-gray-900">
<div class="flex flex-col w-full border-t border-gray-900 space-x-2">
<div class="flex flex-row items-center pt-4 pb-3">
<div class="flex-1 pl-10 pr-5 text-sm w-auto m-auto">
<input
Expand Down