fix(app): inset iOS PWA navigation below native chrome - #46200
Draft
Hona wants to merge 2 commits into
Draft
Conversation
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.
Issue for this PR
Closes #36142. Related: #35480.
Type of change
What does this PR do?
Keep
viewport-fit=coverandblack-translucent, with device safe-area padding around the shell. Add left/right insets for landscape and 32 CSS pixels of extra top clearance only when the web app runs in iOS standalone mode (navigator.standalone). This moves navigation away from the reported native status-bar blur without changing normal browser or Android PWA spacing.This replaces the earlier status-bar-meta-only workaround. The device insets follow WebKit's safe-area guidance; the extra 32px is an app-level clearance allowance, not an Apple-defined inset. The existing standalone height workaround remains unchanged.
How did you verify your code works?
bun typecheckandbun run buildpassed.HTMLElement | SVGElement.direrror innew-session-workspace-pending.spec.ts:38.Draft pending an affected iPhone check. Automation cannot validate the native fade's extent or OS-level touch interception. Verify cold launch, top-navigation taps, rotation, keyboard dismissal, and bottom navigation on the affected device with the updated build active.
Screenshots / recordings
Same 390x844 viewport with emulated 47px top / 34px bottom insets. These show the layout change; native iOS chrome is not rendered.
Before:
After:
Checklist