Skip to content

feat(mobile): header section breadcrumb, fix page overflow and safe areas - #7

Merged
arcultus merged 1 commit into
mainfrom
feat/mobile-ui-overhaul
Dec 4, 2026
Merged

arcultus merged 1 commit into
mainfrom
feat/mobile-ui-overhaul

Conversation

@arcultus

@arcultus arcultus commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Overhauls the mobile experience.

  • Header and dock didn't follow the page: the document was 720px wide on a 390px phone (the hero glow at 300% width, plus hidden glossary cards), so phones let you pan sideways and the sticky and fixed UI drifted. <main> now clips sideways overflow below lg, and the header clips its own. The page width now equals the viewport width at 320, 390 and 430px.
  • New mobile section nav: the bottom rack-and-pinion dock is gone. The header now reads 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 the lg breakpoint.
  • CogDial now renders inside the header so the breadcrumb sits in the header's normal layout. The desktop dial is unchanged and still position: fixed.
  • Safe areas: the header, footer and scroll anchors respect env(safe-area-inset-*), including when the padding changes at the sm breakpoint.
  • Stacking: the overview section is now isolated, so its glossary cards no longer paint over the sticky header.
  • Phone spacing: tighter hero and section spacing, and a smaller hero gear.
  • docs/motion.md documents the breadcrumb, the rejected alternatives, and the rule that nothing may make the page wider than the viewport.

Testing

  • astro build passes. tsc shows only the two focusable errors that already existed on main.
  • Chromium preview at 320, 390 and 1280px: the breadcrumb label tracks the section, the menu picks and dismisses correctly, there's no horizontal overflow (including at 125% text with the menu open), "Kogical" scrolls to y=0, and the desktop dial position is unchanged.
  • Gemini 4 Neon reviewed the change for mobile bugs. All six of its findings were fixed: safe-area padding overridden by 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.
  • Not tested on a physical device. The notch and safe-area behaviour was checked by reading the CSS only.

🤖 Generated with Claude Code

…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>
@arcultus
arcultus merged commit bd9e156 into main Dec 4, 2026
1 check passed
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.

2 participants