fix(web): sidebar "Code" label no longer clips its letter tops (#16134)

This commit is contained in:
Akbar Danial Akma authored and GitHub committed 2026-10-10 00:00:16 -03:00
1 parent 2def3de4b9
commit 391f813357
1 file changed
+2 -1
@@ -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" />
<span
className={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",
)}
>