From 4c21d07daff7304fdc098a5468005d300a88c570 Mon Sep 17 00:00:00 2001 From: broisnees Date: Tue, 24 Nov 2026 11:01:38 +0000 Subject: [PATCH] Stop clipping descenders in tab titles and sidebar names The labels truncate (overflow hidden) inside a line box no taller than the text, so the bottom of g, j, p, q and y was cut off. Tab titles get a normal line height. The sidebar rows keep their 16px line, since the virtual list measures its stride from probe rows with that line, and the clip box grows by 4px each way with a matching negative margin. --- .changeset/descenders.md | 2 ++ src/lib/components/SchemaTimelinePage.svelte | 2 +- src/lib/components/Sidebar.svelte | 10 +++++----- src/lib/components/SidebarObjects.svelte | 6 +++--- src/lib/components/SidebarQueries.svelte | 4 ++-- src/lib/components/SidebarTree.svelte | 2 +- src/lib/components/TabBar.svelte | 2 +- 7 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 .changeset/descenders.md diff --git a/.changeset/descenders.md b/.changeset/descenders.md new file mode 100644 index 00000000..e5f2d94e --- /dev/null +++ b/.changeset/descenders.md @@ -0,0 +1,2 @@ +### Fixes +- **Letters like g and y are no longer cut off** - Tab titles and the names in the sidebar's lists (tables, views, databases, saved queries, the tree) clipped the bottom of descenders, more so with a font that sits low like Source Code Pro. They now have room, and the rows stay the same height. diff --git a/src/lib/components/SchemaTimelinePage.svelte b/src/lib/components/SchemaTimelinePage.svelte index c51b22d2..8c8480e2 100644 --- a/src/lib/components/SchemaTimelinePage.svelte +++ b/src/lib/components/SchemaTimelinePage.svelte @@ -988,7 +988,7 @@ {item.status === 'added' ? '+' : item.status === 'removed' ? '−' : '~'} - {item.name} + {item.name} {/each} diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index ab42dad5..f7fc9664 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -2682,7 +2682,7 @@ aria-label={isCurrent ? `${db.label}, current database` : `Switch to ${db.label}`} > - {@render hl(db.label)} + {@render hl(db.label)} {#if isCurrent} {/if} @@ -2800,7 +2800,7 @@ {:else} {/if} - {@render hl(item.table)} + {@render hl(item.table)} {/if} {/snippet} @@ -399,7 +399,7 @@ > - {f.name} + {f.name} {group.queries.length} {#if tab.pinned}