Repository navigation
feat(mobile): header section breadcrumb, fix page overflow and safe areas - #7
Merged
Merged
Conversation
…reas
- Fix the page being wider than the viewport on phones (hero glow and
hidden glossary cards), which let mobile browsers pan sideways so the
sticky header and fixed dock appeared not to follow the page.
- Replace the bottom rack-and-pinion dock with a header breadcrumb
("Kogical / gear Colecto"): the gear turns with scroll via the desktop
dial's spring, and tapping opens a short section menu.
- Render CogDial inside the header; the desktop dial stays fixed.
- Respect safe-area insets in the header, footer and scroll anchors.
- Isolate the overview section so its glossary cards stay under the header.
- Tighter hero and section spacing on phones; smaller hero gear.
- Document the breadcrumb and the no-horizontal-overflow rule in docs/motion.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Overhauls the mobile experience.
<main>now clips sideways overflow belowlg, and the header clips its own. The page width now equals the viewport width at 320, 390 and 430px.Kogical / ⚙ Colecto. The small gear turns with scroll, using the same spring and detents as the desktop dial, and the section name crossfades. Tapping opens a short section menu that closes on a pick, an outside tap, Escape (focus returns to the button), or crossing thelgbreakpoint.CogDialnow renders inside the header so the breadcrumb sits in the header's normal layout. The desktop dial is unchanged and stillposition: fixed.env(safe-area-inset-*), including when the padding changes at thesmbreakpoint.docs/motion.mddocuments the breadcrumb, the rejected alternatives, and the rule that nothing may make the page wider than the viewport.Testing
astro buildpasses.tscshows only the twofocusableerrors that already existed onmain.sm:px-6, overview glossary cards above the header, menu overflow at large text sizes, scroll anchors ignoring the top inset, double-tap zoom, and leftover CSS.🤖 Generated with Claude Code