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:
Francesco Bonacci
2026-02-09 09:58:28 -08:00
committed by GitHub
parent dd9aedcdcd
commit 0f2a7b14a9

View File

@@ -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}