Repository navigation
fix(pwa): keep #top-edge off the header search field - #1036
Merged
Merged
Conversation
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.
Merged
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.
The 12px
#top-edgebar 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-topis 0 (the iPadOS 26.1+ probe pin, or no inset at all).#top-edgeishidden 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.--safe-topis floored at 12px (standalone CSS default, andSafeAreaProbenow pinsTOP_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.tests/pwa/edge-effect.test.ts; probe/safe-area tests now expect12px.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.