Skip to content

fix(stats): mobile header — doubled notch inset + misaligned range picker#132

Merged
bndct-devops merged 1 commit into
mainfrom
fix/mobile-stats-header
Jul 19, 2026
Merged

fix(stats): mobile header — doubled notch inset + misaligned range picker#132
bndct-devops merged 1 commit into
mainfrom
fix/mobile-stats-header

Conversation

@bndct-devops

Copy link
Copy Markdown
Owner

Overnight run PR 1/12 — merge this first; the stack builds on it in order.

Fixes the two layout bugs from the phone screenshots (2026-07-18):

  • Dead gap between the top bar and the page title (installed PWA): the Stats header renders inside AppShell, below the app bar that already pays env(safe-area-inset-top) — its own safe-top paid the ~59pt dynamic-island inset a second time. Removed; the header now sits flush.
  • "Versetzt" range picker: when the timeframe pills wrap below the title on narrow screens, they kept ml-auto and floated right with dead space to their left. On max-sm the control now takes a full-width, left-aligned row (with horizontal scroll if ever cramped).

About the scroll indicator behind the header: with the dead band gone, what remains is the indicator passing under the translucent sticky header — which is native iOS behavior (scroll indicators run under translucent bars in system apps too). Judge it on the device with this fix in; if it still reads wrong, the escape hatch is making the header opaque or non-sticky on phones — say the word.

Verified: WebKit iPhone-13 viewport screenshot (gap gone, picker aligned); frontend build/typecheck clean. The safe-area double-inset itself can't be reproduced in emulation (no fake env insets) but the class removal is deterministic.

…ange picker

The Stats header renders inside AppShell below the app bar, which already
pays env(safe-area-inset-top); its own safe-top doubled the inset into a
~59pt dead band on the installed PWA. The range picker kept ml-auto when
wrapping under the title on phones, floating right with dead space — it now
takes a full-width, left-aligned row (scrollable if cramped).

The scroll indicator passing under the translucent sticky header is native
iOS behavior (indicators run under translucent bars) and is much less
prominent once the dead band is gone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bndct-devops
bndct-devops merged commit 4e18a8e into main Jul 19, 2026
2 checks passed
@bndct-devops
bndct-devops deleted the fix/mobile-stats-header branch July 19, 2026 09:59
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.

1 participant