Skip to content

Fix iOS PWA full-screen layout (black bars + safe-area bleed)#89

Merged
d3mocide merged 1 commit into
mainfrom
claude/pwa-ios-layout-cErUA
May 31, 2026
Merged

Fix iOS PWA full-screen layout (black bars + safe-area bleed)#89
d3mocide merged 1 commit into
mainfrom
claude/pwa-ios-layout-cErUA

Conversation

@d3mocide
Copy link
Copy Markdown
Owner

iOS standalone PWAs resolve 100vh/height:100% inconsistently — they
can return the safe viewport (innerHeight, ~894px) instead of the full
screen (~956px), leaving a black letterbox bar and pushing chrome under
the notch / home indicator.

Pin #root with position: fixed; inset: 0 (with a 100dvh fallback) so the
shell always anchors to the full layout viewport — the entire screen under
viewport-fit=cover — and switch the app/auth/login/admin roots from
h-screen/w-screen to h-full/w-full so they inherit that reliable size.
Existing pt-safe / pb-safe padding then keeps chrome clear of the unsafe
zones without double-counting.

iOS standalone PWAs resolve `100vh`/`height:100%` inconsistently — they
can return the safe viewport (innerHeight, ~894px) instead of the full
screen (~956px), leaving a black letterbox bar and pushing chrome under
the notch / home indicator.

Pin #root with `position: fixed; inset: 0` (with a 100dvh fallback) so the
shell always anchors to the full layout viewport — the entire screen under
viewport-fit=cover — and switch the app/auth/login/admin roots from
h-screen/w-screen to h-full/w-full so they inherit that reliable size.
Existing pt-safe / pb-safe padding then keeps chrome clear of the unsafe
zones without double-counting.
@d3mocide d3mocide merged commit 3ce8a66 into main May 31, 2026
6 checks passed
@d3mocide d3mocide deleted the claude/pwa-ios-layout-cErUA branch May 31, 2026 01:07
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