Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/engine-picker-rows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Changes
- **A calmer database picker** - In the connection form's database menu, each row is now the engine's icon and name. The one-line descriptions moved to a hover tooltip and still match in search, and Beta is plain grey text instead of a blue badge. The menu is narrower to match.
18 changes: 9 additions & 9 deletions src/lib/components/ConnectionModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4493,7 +4493,7 @@
bind:open={enginePickerOpen}
items={engineItems}
placeholder="Search databases…"
contentClass="w-[26rem]"
contentClass="w-72"
align="start"
onselect={(it) => pickEngine(it.value)}
>
Expand All @@ -4513,23 +4513,23 @@
{editingId ? name || activeDriver.label : activeDriver.label}
</span>
{#if activeDriver.beta}
<span class="shrink-0 rounded-sm bg-primary/10 px-1 text-ui-3xs font-medium text-primary">Beta</span>
<span class="shrink-0 text-ui-3xs text-muted-foreground">Beta</span>
{/if}
<Icon name="chevron-down" class="size-3.5 shrink-0 text-muted-foreground" />
</button>
{/snippet}
{#snippet item(it)}
<DbIcon id={it.value} class={cn("size-4 shrink-0", engineTint(it.value))} />
<!-- No category per row: "Hosting providers" printed down five
rows in a row was noise beside names that already say what
they are. The category still matches in search (keywords). -->
<span class="min-w-0 shrink-0 truncate">{it.label}</span>
<!-- The name and nothing else. Each row used to carry its
one-line blurb and a blue Beta chip too, and thirty rows
of three texts read as clutter. The blurb (and the
category) still match in search and show on hover. -->
<span class="min-w-0 flex-1 truncate" title={it.desc}>{it.label}</span>
{#if it.beta}
<span class="shrink-0 rounded-sm bg-primary/10 px-1 text-ui-3xs font-medium text-primary">Beta</span>
<span class="shrink-0 text-ui-3xs text-muted-foreground">Beta</span>
{/if}
<span class="min-w-0 flex-1 truncate text-ui-3xs text-muted-foreground">{it.desc}</span>
{#if it.value === dbType}
<Icon name="check" class="size-3.5 shrink-0 text-primary" />
<Icon name="check" class="size-3.5 shrink-0 text-muted-foreground" />
{/if}
{/snippet}
</SearchableMenu>
Expand Down
Loading