Skip to content

Fix mobile nav not filling full height - #9

Merged
stefan-burke merged 1 commit into
mainfrom
claude/mobile-nav-height-diagnosis-hzevoy
Jul 14, 2026
Merged

Fix mobile nav not filling full height#9
stefan-burke merged 1 commit into
mainfrom
claude/mobile-nav-height-diagnosis-hzevoy

Conversation

@stefan-burke

Copy link
Copy Markdown
Member

Problem

On mobile, the slide-in navigation menu was clipped to a thin sliver at the top instead of filling the screen — it worked correctly on the bare chobble-template but not here.

Root cause

The template's mobile menu panel (nav > ul) is laid out with position: fixed; top: 3rem; bottom: 0, so its full height comes from those offsets resolving against the viewport.

This repo's css/theme.scss applied backdrop-filter directly to <nav> at all widths. backdrop-filter (like filter/transform/perspective/will-change) makes an element the containing block for its position: fixed descendants. That made <nav> — the parent of the menu <ul> — the reference for the panel's top/bottom, so bottom: 0 collapsed to the bottom of the 3rem-tall bar instead of the bottom of the screen.

Fix

Guard the backdrop-filter behind @media screen and (min-width: 769px) (the template's md breakpoint is 768px) so it only applies at desktop widths, where <nav> is not the fixed mobile bar. The frosted-glass look is unchanged on desktop, and the mobile menu now resolves its height against the viewport again.

🤖 Generated with Claude Code

https://claude.ai/code/session_014S4zTuDPBEokPPWMHBgM3t


Generated by Claude Code

Move nav backdrop-filter to desktop-only (min-width 769px). A
backdrop-filter on <nav> makes it the containing block for its
position:fixed descendants, collapsing the template full-height mobile
menu (nav > ul: top:3rem; bottom:0) to the height of the bar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014S4zTuDPBEokPPWMHBgM3t
@stefan-burke
stefan-burke merged commit 0383aff into main Jul 14, 2026
2 checks 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