Skip to content

fix(pwa): keep #top-edge off the header search field - #1036

Merged
mbryantms merged 1 commit into
mainfrom
fix/top-edge-clip
Oct 5, 2026
Merged

mbryantms merged 1 commit into
mainfrom
fix/top-edge-clip

Conversation

@mbryantms

Copy link
Copy Markdown
Owner

The 12px #top-edge bar from #1026 sits above every header (z-9999, page colour). The topbar centres its controls in 56px, so the search field's top border / focus ring lands inside that band and gets painted over — reported in a browser tab, and also true in the installed app wherever --safe-top is 0 (the iPadOS 26.1+ probe pin, or no inset at all).

  • Browser tab: #top-edge is hidden standalone:block — no status bar to sample, so nothing to cover. Display mode doesn't change within a document, so iPadOS still sees one unchanging element.
  • Installed app: --safe-top is floored at 12px (standalone CSS default, and SafeAreaProbe now pins TOP_EDGE_PX = 12px instead of 0). Headers, sheets, the reader chrome and dropdown collision padding already pad by --safe-top, so all of them clear the bar. On iPadOS 26.1+ this adds a 12px band in the header's colour above the topbar controls.
  • Guard updated in tests/pwa/edge-effect.test.ts; probe/safe-area tests now expect 12px.

Needs an on-device check on the iPad PWA (LAN dev loop): the status bar should still stay clean, and the topbar should sit 12px lower. Not browser-verified locally — dev server wasn't running.

The 12px #top-edge bar (#1026) sits above every header at z-9999 in the
page colour. The topbar centres its controls in 56px, so the search
field's top border and focus ring fall inside that band and were painted
over — in a browser tab, and in the installed app wherever --safe-top
is 0 (the 26.1+ probe pin, or no status-bar inset at all).

- Render #top-edge only in display-mode: standalone; a browser tab has
  no status bar to sample. Display mode never changes within a document,
  so it is still one unchanging element for iPadOS.
- In the installed app, floor --safe-top at 12px (CSS default and the
  value SafeAreaProbe pins, now TOP_EDGE_PX) so headers, sheets and the
  reader chrome all clear the bar through their existing padding.
@mbryantms
mbryantms merged commit a5de96b into main Oct 5, 2026
15 checks passed
@mbryantms
mbryantms deleted the fix/top-edge-clip branch October 5, 2026 12:00
@mbryantms mbryantms mentioned this pull request Oct 5, 2026
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