Repository navigation
Header: fold the nav behind Menu below 1200px, not 1080px - #46
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)becomes1199px. The header comment now records the measured width and says to measure again if a nav label grows.tokens.css: the--header-hbreakpoint (68px with Menu, 64px without) moves with it, so the sticky offset and anchor jumps still match the band.rg '1079|1080' srcfinds onlyReaderGroups.astro's1080pxcontent-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.Menu at the widths that now get it
At 390, 768, 1020, 1080, 1100, 1150, 1190 and 1199px:
--header-h.From 1200px the nav is one row at 64px.
Checks
corepack pnpm verify:astro check0 errors, 0 warnings, 0 hints; build;check-site.mjs19 pages checked, 0 errors.git merge-treeagainst origin/main: clean.Posted by Claude (AI assistant) on behalf of Christopher Byrd
🤖 Generated with Claude Code
https://claude.ai/code/session_012CEyiXRPrNfjwX3iEx99dw