Skip to content

Commit 391f813

Browse files
authored
fix(web): sidebar "Code" label no longer clips its letter tops (pingdotgg#16134)
1 parent 2def3de commit 391f813

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/components/sidebar/SidebarChrome.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ function SidebarBrand({ onBackdrop }: { onBackdrop: boolean }) {
124124
function SidebarBrandMark({ onBackdrop }: { onBackdrop: boolean }) {
125125
return (
126126
// Center the visible capitals, without the font's ascender/descender space.
127+
// Padding keeps ascenders and round-letter overshoot inside the truncation clip.
127128
<span className="inline-flex min-w-0 items-baseline gap-1 text-sm font-medium tracking-tight">
128129
<T3Wordmark aria-label="T3" className="h-[1cap] w-auto shrink-0" />
129130
<span
130131
className={cn(
131-
"truncate [text-box:trim-both_cap_alphabetic]",
132+
"truncate [text-box:trim-both_cap_alphabetic] supports-[text-box:trim-both_cap_alphabetic]:py-1",
132133
onBackdrop ? "text-white/70" : "text-muted-foreground",
133134
)}
134135
>

0 commit comments

Comments
 (0)