mirror of
https://github.com/trycua/computer.git
synced 2026-02-14 01:29:22 -06:00
fix: reduce excessive spacing in header between logo, name, and docs label (#1049)
Replace min-w-[5.5rem] with whitespace-nowrap on the site name span. The min-width was added to prevent layout shift but caused too much gap for short names like "Cua". whitespace-nowrap achieves the same shift prevention without forcing extra width.
This commit is contained in:
committed by
GitHub
parent
dd9aedcdcd
commit
0f2a7b14a9
@@ -194,9 +194,9 @@ export function CustomHeader() {
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{/* Site name and label - min-width prevents layout shift between products */}
|
||||
{/* Site name and label - whitespace-nowrap prevents layout shift */}
|
||||
<span
|
||||
className="inline-block min-w-[5.5rem] font-semibold"
|
||||
className="whitespace-nowrap font-semibold"
|
||||
style={{ fontFamily: 'var(--font-urbanist)' }}
|
||||
>
|
||||
{currentSite.name}
|
||||
|
||||
Reference in New Issue
Block a user