| ... | @@ -124,11 +124,12 @@ function SidebarBrand({ onBackdrop }: { onBackdrop: boolean }) { | ... | @@ -124,11 +124,12 @@ function SidebarBrand({ onBackdrop }: { onBackdrop: boolean }) { |
| 124 | function SidebarBrandMark({ onBackdrop }: { onBackdrop: boolean }) { | 124 | function SidebarBrandMark({ onBackdrop }: { onBackdrop: boolean }) { |
| 125 | return ( | 125 | return ( |
| 126 | // Center the visible capitals, without the font's ascender/descender space. | 126 | // Center the visible capitals, without the font's ascender/descender space. |
| | 127 | // Padding keeps ascenders and round-letter overshoot inside the truncation clip. |
| 127 | <span className="inline-flex min-w-0 items-baseline gap-1 text-sm font-medium tracking-tight"> | 128 | <span className="inline-flex min-w-0 items-baseline gap-1 text-sm font-medium tracking-tight"> |
| 128 | <T3Wordmark aria-label="T3" className="h-[1cap] w-auto shrink-0" /> | 129 | <T3Wordmark aria-label="T3" className="h-[1cap] w-auto shrink-0" /> |
| 129 | <span | 130 | <span |
| 130 | className={cn( | 131 | 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", |
| 132 | onBackdrop ? "text-white/70" : "text-muted-foreground", | 133 | onBackdrop ? "text-white/70" : "text-muted-foreground", |
| 133 | )} | 134 | )} |
| 134 | > | 135 | > |