[PR #3116] [MERGED] Fix iOS PWA chin strip on Face ID iPhones #5807

Closed
opened 2026-10-22 04:19:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3116
Author: @Lamboozled
Created: 6/30/2026
Status: ✅ Merged
Merged: 7/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/ios-pwa-chin


📝 Commits (3)

  • f806c09 Fix iOS PWA chin strip on Face ID iPhones
  • 404a5d9 Fix keyboard push and chin: use dvh + interactive-widget
  • c92dc0d docs: update iOS safe area doc with keyboard fix details

📊 Changes

6 files changed (+104 additions, -10 deletions)

View changed files

➕ docs/IOS_PWA_BOTTOM_SAFE_AREA.md (+81 -0)
📝 packages/client/index.html (+8 -2)
📝 packages/client/src/components/chat/ConversationInput.tsx (+1 -1)
📝 packages/client/src/components/game/GameInput.tsx (+1 -1)
📝 packages/client/src/components/layout/AppShell.tsx (+3 -1)
📝 packages/client/src/styles/globals.css (+10 -5)

📄 Description

Linked issue

Closes #3117

Why this change

  • On Face ID iPhones in PWA standalone mode, black-translucent status bar style triggers a WebKit restriction that prevents position: fixed elements from painting the home-indicator zone (~34px). No CSS workaround exists — offsets, calc(100dvh + env(safe-area-inset-bottom)), and height overrides are all silently clamped. Result: visible chin strip below the chat input.

What changed

  • packages/client/index.html — status bar style black, inline background-color for WKWebView native backing colour, interactive-widget=resizes-content viewport flag
  • packages/client/src/components/layout/AppShell.tsx — root div changed to fixed top-0 left-0 right-0 h-dvh (no explicit bottom to avoid over-constrained layout when keyboard opens); top safe-area spacer added
  • packages/client/src/styles/globals.css — mobile html/body rules simplified; upstream .mari-app { height: var(--mari-visual-viewport-height) } override removed (conflicted with interactive-widget resize)
  • docs/IOS_PWA_BOTTOM_SAFE_AREA.md — root-cause explanation, diagnostic technique, regression checklist

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify on Face ID iPhone PWA: no chin strip below chat input
  • Manually verify status bar zone is filled (no gap at top)
  • Manually verify chat input has natural padding (not flush to screen edge)
  • Manually verify keyboard opens without UI jumping or purple background showing

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

Before and after

Before After

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3116 **Author:** [@Lamboozled](https://github.com/Lamboozled) **Created:** 6/30/2026 **Status:** ✅ Merged **Merged:** 7/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/ios-pwa-chin` --- ### 📝 Commits (3) - [`f806c09`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f806c091f321b66a8b1bf3cd98b69dcd007239fe) Fix iOS PWA chin strip on Face ID iPhones - [`404a5d9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/404a5d997805e5d4066269aa027be927dce49720) Fix keyboard push and chin: use dvh + interactive-widget - [`c92dc0d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c92dc0df0f5bfb7567e5bff9508856506a3f14ce) docs: update iOS safe area doc with keyboard fix details ### 📊 Changes **6 files changed** (+104 additions, -10 deletions) <details> <summary>View changed files</summary> ➕ `docs/IOS_PWA_BOTTOM_SAFE_AREA.md` (+81 -0) 📝 `packages/client/index.html` (+8 -2) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+1 -1) 📝 `packages/client/src/components/game/GameInput.tsx` (+1 -1) 📝 `packages/client/src/components/layout/AppShell.tsx` (+3 -1) 📝 `packages/client/src/styles/globals.css` (+10 -5) </details> ### 📄 Description ## Linked issue Closes #3117 ## Why this change - On Face ID iPhones in PWA standalone mode, `black-translucent` status bar style triggers a WebKit restriction that prevents `position: fixed` elements from painting the home-indicator zone (~34px). No CSS workaround exists — offsets, `calc(100dvh + env(safe-area-inset-bottom))`, and height overrides are all silently clamped. Result: visible chin strip below the chat input. ## What changed - `packages/client/index.html` — status bar style `black`, inline background-color for WKWebView native backing colour, `interactive-widget=resizes-content` viewport flag - `packages/client/src/components/layout/AppShell.tsx` — root div changed to `fixed top-0 left-0 right-0 h-dvh` (no explicit bottom to avoid over-constrained layout when keyboard opens); top safe-area spacer added - `packages/client/src/styles/globals.css` — mobile html/body rules simplified; upstream `.mari-app { height: var(--mari-visual-viewport-height) }` override removed (conflicted with interactive-widget resize) - `docs/IOS_PWA_BOTTOM_SAFE_AREA.md` — root-cause explanation, diagnostic technique, regression checklist ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify on Face ID iPhone PWA: no chin strip below chat input - Manually verify status bar zone is filled (no gap at top) - Manually verify chat input has natural padding (not flush to screen edge) - Manually verify keyboard opens without UI jumping or purple background showing ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## Before and after <img width="563" height="1218" alt="Before" src="https://github.com/user-attachments/assets/4c732ded-67a7-44da-a572-ba87a8119735" /> <img width="563" height="1218" alt="After" src="https://github.com/user-attachments/assets/df2ff601-e04e-413a-84ab-de5ec38e0425" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:19:42 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5807
No description provided.