TypeScript
fix(web): sidebar "Code" label no longer clips its letter tops (#16134)
Akbar Danial Akma391f813357c7
diff --git a/apps/web/src/components/sidebar/SidebarChrome.tsx b/apps/web/src/components/sidebar/SidebarChrome.tsxindex 89e735f99f8..716f96ceecd 100644--- a/apps/web/src/components/sidebar/SidebarChrome.tsx+++ b/apps/web/src/components/sidebar/SidebarChrome.tsx@@ -124,11 +124,12 @@ function SidebarBrand({ onBackdrop }: { onBackdrop: boolean }) {function SidebarBrandMark({ onBackdrop }: { onBackdrop: boolean }) {return (// Center the visible capitals, without the font's ascender/descender space.+ // Padding keeps ascenders and round-letter overshoot inside the truncation clip.<span className="inline-flex min-w-0 items-baseline gap-1 text-sm font-medium tracking-tight"><T3Wordmark aria-label="T3" className="h-[1cap] w-auto shrink-0" /><spanclassName={cn(- "truncate [text-box:trim-both_cap_alphabetic]",+ "truncate [text-box:trim-both_cap_alphabetic] supports-[text-box:trim-both_cap_alphabetic]:py-1",onBackdrop ? "text-white/70" : "text-muted-foreground",)}>