Skip to content

Commit 18cba1b

Browse files
committed
fix(header): keep the bar on one line below 360px
At 320-359px the content box drops under the 328px floor measured for the <=389px fit rule, and `menu` wrapped to a second row. Every control was already at its documented floor (8px gutters, 36px block size for SC 2.5.8), so the wordmark gives back the ~68px instead. The 30px mark stays and the brand link keeps its aria-label, so the home affordance and its accessible name are intact. 360-389px is untouched — it measures as fitting. Co-Authored-By: CRHQ <noreply@crhq.ai>
1 parent 6e9ad03 commit 18cba1b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎src/components/SiteHeader.astro‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,21 @@ const utility = [
540540
padding-inline: 0.5rem;
541541
}
542542
}
543+
/* ---------- sub-360 phones (320, 344 …) ----------
544+
Below 360 the content box falls under the 328px floor measured above and `menu` wraps to
545+
a second row again. Every control is already at its documented floor — the gutters are at
546+
8px, and both chrome controls keep their 36px block size for SC 2.5.8 — so the only
547+
element left that can give back real width is the WORDMARK, and it is worth ~68px.
548+
The 30px mark stays (the operator's "much larger in the header" was always about the
549+
mark), and the link keeps `aria-label="grokbot.dev home"`, so the home affordance and its
550+
accessible name both survive the word being hidden. `display: none` and not a font step:
551+
at 320px a smaller word still would not fit, and half-measures here cost another QA round.
552+
360-389px is deliberately untouched — it MEASURES as fitting, so it keeps its wordmark. */
553+
@media (max-width: 359px) {
554+
.brand-word {
555+
display: none;
556+
}
557+
}
543558

544559
/* ---------- drawer (F1, polished at F7) ---------- */
545560
.navDrawer {

0 commit comments

Comments
 (0)