[PR #8128] [MERGED] fix(mobile): keep the landscape gutter on the iPhone camera side #8116

Closed
opened 2026-10-24 04:10:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8128
Author: @SpicyMarinara
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/phone-camera-side


📝 Commits (3)

  • ca9ff3f test: reproduce mirrored iPhone landscape camera gutter
  • 803792e fix(mobile): keep the landscape gutter on the iPhone camera side
  • 15b2b8d test: calibrate camera fallback and Apple shortcut expectations

📊 Changes

6 files changed (+211 additions, -18 deletions)

View changed files

📝 docs/development/ios-pwa-safe-area.md (+5 -4)
📝 e2e/core-flows.e2e.ts (+13 -1)
➕ e2e/phone-camera-side.e2e.ts (+146 -0)
📝 packages/client/src/components/layout/AppShell.tsx (+17 -2)
📝 packages/client/src/styles/globals.css (+25 -6)
📝 scripts/regressions/mobile-safe-area-inset.regression.ts (+5 -5)

📄 Description

Linked issue

Closes #8127. Implementation owner: @SpicyMarinara (Codex).

Why this change

On iPhone in landscape, the Engine reserved the same camera-sized gutter at both edges. That left unused space opposite the camera, including in fullscreen Gacha Forge.

What changed

  • Keep the landscape gutter on the camera side, following both rotation directions. Unknown rotations, iPad and Android retain their system insets.
  • Let the app and phone panels fill the opposite edge. Preserve the original safe areas for dialogs, popups and TopBar controls so the rounded corners do not cover those controls.
  • Cover legacy and standard orientation APIs, both themes, portrait restoration, zero insets and device fallback. Calibrate the existing two-gutter test to explicitly cover unknown orientation; correct its neighbouring Home fixture to expect the platform's exact shortcut text.
  • Update the safe-area developer guide; translations remain tracked in #8106.

Validation

Local results on the final production code (test fixtures then calibrated without further app changes):

  • pnpm check passed, including localization, TypeScript, ESLint and production builds. One existing React Hook dependency warning in HomeProfessorMariChat.tsx; no errors.
  • pnpm check:e2e-types passed after the final fixture changes.
  • node scripts/run-regressions.mjs --filter mobile-safe-area-inset: 1/1 passed.
  • Camera and fullscreen specs: 15 passed, 3 desktop-only skips, across desktop Chromium, mobile Chromium and iPhone WebKit.
  • Related Home/sidebar/keyboard/camera cases: 11 passed, 4 desktop-only skips.
  • pnpm smoke:ui: 7/7 passed.
  • Local CodeRabbit: first review's rounded-corner finding addressed by keeping system insets separate from shell gutters; final five-file review found zero findings. Follow-up review of the final fixture corrections also found zero findings.
  • Before the fix, the camera test failed with a 756px shell instead of 815px at an 874px viewport (59px mirrored gutter). Browser traces preserved locally. The older layout failures reproduced unchanged before their fixture corrections; no assertions were removed.

Additional integration proof: merged the final PR locally with staging 6bc3ebb35 (Game UI PR #8121). pnpm check, all 15 camera/fullscreen cases and 7 smoke checks passed on that combined tree (be76fe46a3300e0f2cde62523db778bc383f1e6b). The earlier 11 broader layout cases were not repeated on this non-overlapping Game UI merge.

  • Manually verify Safari and the home-screen app on a real iPhone rotated both ways.
  • Manually verify the camera stays clear, the opposite edge fills, and the TopBar buttons remain tappable.
  • Manually verify fullscreen Gacha Forge, chat/settings sheets, dialogs and the keyboard on that iPhone.
  • Manually verify portrait, iPad, Android and desktop layouts.

Docs and release impact

Developer safe-area guide updated; existing translation follow-up #8106 covers this file. No app version or storage-format change. No changelog edit.

UI evidence (if applicable)

Before/after screenshots, self-contained HTML. Download the HTML to view the embedded images. Captured from production code at 803792ee1 (unchanged in the final test-only commit): iPhone WebKit emulation, 874×402 CSS pixels, simulated symmetric 59px system insets, camera-left dark Home and camera-right light chat sidebar. This is browser evidence; physical-device verification remains manual.


🔄 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/8128 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/phone-camera-side` --- ### 📝 Commits (3) - [`ca9ff3f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca9ff3f96fe8c5cf2c1605012d9533af805c9d40) test: reproduce mirrored iPhone landscape camera gutter - [`803792e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/803792ee1ac6ccae7fb5a4494a0014207454ba2a) fix(mobile): keep the landscape gutter on the iPhone camera side - [`15b2b8d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/15b2b8d9e51c2537bb0cc9a27af92a8cc67b87cd) test: calibrate camera fallback and Apple shortcut expectations ### 📊 Changes **6 files changed** (+211 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/ios-pwa-safe-area.md` (+5 -4) 📝 `e2e/core-flows.e2e.ts` (+13 -1) ➕ `e2e/phone-camera-side.e2e.ts` (+146 -0) 📝 `packages/client/src/components/layout/AppShell.tsx` (+17 -2) 📝 `packages/client/src/styles/globals.css` (+25 -6) 📝 `scripts/regressions/mobile-safe-area-inset.regression.ts` (+5 -5) </details> ### 📄 Description ## Linked issue Closes #8127. Implementation owner: @SpicyMarinara (Codex). ## Why this change On iPhone in landscape, the Engine reserved the same camera-sized gutter at both edges. That left unused space opposite the camera, including in fullscreen Gacha Forge. ## What changed - Keep the landscape gutter on the camera side, following both rotation directions. Unknown rotations, iPad and Android retain their system insets. - Let the app and phone panels fill the opposite edge. Preserve the original safe areas for dialogs, popups and TopBar controls so the rounded corners do not cover those controls. - Cover legacy and standard orientation APIs, both themes, portrait restoration, zero insets and device fallback. Calibrate the existing two-gutter test to explicitly cover unknown orientation; correct its neighbouring Home fixture to expect the platform's exact shortcut text. - Update the safe-area developer guide; translations remain tracked in #8106. ## Validation Local results on the final production code (test fixtures then calibrated without further app changes): - `pnpm check` passed, including localization, TypeScript, ESLint and production builds. One existing React Hook dependency warning in `HomeProfessorMariChat.tsx`; no errors. - `pnpm check:e2e-types` passed after the final fixture changes. - `node scripts/run-regressions.mjs --filter mobile-safe-area-inset`: 1/1 passed. - Camera and fullscreen specs: 15 passed, 3 desktop-only skips, across desktop Chromium, mobile Chromium and iPhone WebKit. - Related Home/sidebar/keyboard/camera cases: 11 passed, 4 desktop-only skips. - `pnpm smoke:ui`: 7/7 passed. - Local CodeRabbit: first review's rounded-corner finding addressed by keeping system insets separate from shell gutters; final five-file review found zero findings. Follow-up review of the final fixture corrections also found zero findings. - Before the fix, the camera test failed with a 756px shell instead of 815px at an 874px viewport (59px mirrored gutter). Browser traces preserved locally. The older layout failures reproduced unchanged before their fixture corrections; no assertions were removed. Additional integration proof: merged the final PR locally with staging `6bc3ebb35` (Game UI PR #8121). `pnpm check`, all 15 camera/fullscreen cases and 7 smoke checks passed on that combined tree (`be76fe46a3300e0f2cde62523db778bc383f1e6b`). The earlier 11 broader layout cases were not repeated on this non-overlapping Game UI merge. - [ ] Manually verify Safari and the home-screen app on a real iPhone rotated both ways. - [ ] Manually verify the camera stays clear, the opposite edge fills, and the TopBar buttons remain tappable. - [ ] Manually verify fullscreen Gacha Forge, chat/settings sheets, dialogs and the keyboard on that iPhone. - [ ] Manually verify portrait, iPad, Android and desktop layouts. ## Docs and release impact Developer safe-area guide updated; existing translation follow-up #8106 covers this file. No app version or storage-format change. No changelog edit. ## UI evidence (if applicable) [Before/after screenshots, self-contained HTML](https://gist.github.com/SpicyMarinara/08fb988f863bb9759b7bbc8abccc7d5f). Download the HTML to view the embedded images. Captured from production code at `803792ee1` (unchanged in the final test-only commit): iPhone WebKit emulation, 874×402 CSS pixels, simulated symmetric 59px system insets, camera-left dark Home and camera-right light chat sidebar. This is browser evidence; physical-device verification remains manual. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:30 +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#8116
No description provided.