Skip to content

Header: fold the nav behind Menu below 1200px, not 1080px - #46

Merged
cbyrd01 merged 1 commit into
mainfrom
fix/header-breakpoint
Nov 17, 2026
Merged

cbyrd01 merged 1 commit into
mainfrom
fix/header-breakpoint

Conversation

@cbyrd01

@cbyrd01 cbyrd01 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Closes #45

Between 1080 and 1150px wide, the header wrapped onto two rows. The nav only folded behind the Menu button below 1080px, but the one-row header needs about 1160px. This moves the breakpoint to 1200px, a value set from measurement.

Change

  • Header.astro: @media (max-width: 1079px) becomes 1199px. The header comment now records the measured width and says to measure again if a nav label grows.
  • tokens.css: the --header-h breakpoint (68px with Menu, 64px without) moves with it, so the sticky offset and anchor jumps still match the band.
  • Nothing else depends on the old value. rg '1079|1080' src finds only ReaderGroups.astro's 1080px content-grid rule, which has nothing to do with the header. No script reads the width.

Measurement

Measured in a headless browser at every 10px from 1020 to 1300px, on / (narrow bar), /introduction/ and /spec/draft/ (wide bar). Each width ran three ways: the default fonts, the root font set to 20px, and the header in the fallback system font.

Two-row widths Spare room at the narrowest one-row width
Before (Menu below 1080px) 1080–1150px, on all three pages 1px at 1160px
After (Menu below 1200px) none 41px at 1200px (100px in the fallback font)
  • The 20px root font gives the same numbers as the default, because the header is sized in px.
  • Above 1232px the narrow bar stops growing, so the spare room on the home page stays at about 73px.

Menu at the widths that now get it

At 390, 768, 1020, 1080, 1100, 1150, 1190 and 1199px:

  • The Menu button opens the nav.
  • All nine items are listed, from Introduction to GitHub.
  • The label switches to "Close".
  • The band is 68px tall and matches --header-h.

From 1200px the nav is one row at 64px.

Checks

  • corepack pnpm verify: astro check 0 errors, 0 warnings, 0 hints; build; check-site.mjs 19 pages checked, 0 errors.
  • git merge-tree against origin/main: clean.
  • Before and after header screenshots at 1070, 1080, 1100, 1150, 1160, 1190, 1200 and 1210px are with the coordinator.

Posted by Claude (AI assistant) on behalf of Christopher Byrd

🤖 Generated with Claude Code

https://claude.ai/code/session_012CEyiXRPrNfjwX3iEx99dw

The one-row header (wordmark, nine nav items, theme toggle) needs about
1160px with Public Sans, so between 1080 and 1150px it wrapped onto two
rows. The Menu-button breakpoint moves to 1200px, which leaves about
40px of room at the narrowest one-row width. The --header-h breakpoint
in tokens.css moves with it, so the sticky offset still matches the
band's height (68px with Menu, 64px without).

Closes #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CEyiXRPrNfjwX3iEx99dw
@cbyrd01
cbyrd01 marked this pull request as ready for review November 17, 2026 16:40
@cbyrd01
cbyrd01 merged commit 1d82e91 into main Nov 17, 2026
1 check passed
@cbyrd01
cbyrd01 deleted the fix/header-breakpoint branch November 17, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Header wraps onto two rows between 1080 and 1150px

1 participant