[GH-ISSUE #8106] [docs-i18n] docs/development/ios-pwa-safe-area.md (landscape side insets) #7562

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

Originally created by @SpicyMarinara on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8106

Originally assigned to: @SpicyMarinara on GitHub.

English docs changed in #8105: docs/development/ios-pwa-safe-area.md.

  • A new section, "Landscape: the camera's side insets", sits before "How it was diagnosed". It explains:
    • When an iPhone is turned sideways, its camera sits at the left or right edge. iOS reports the space as env(safe-area-inset-left) and env(safe-area-inset-right) (about 59px on Dynamic Island models). Android keeps pages clear of the cutout, so the insets are 0 there.
    • globals.css reads the two insets once, into --mari-safe-area-inset-left and --mari-safe-area-inset-right; everything else reads the variables. scripts/regressions/mobile-safe-area-inset.regression.ts enforces it.
    • In the phone shell, .mari-app takes its left and right from the variables, so the page backing shows in the two strips like the status-bar strip in portrait.
    • Fixed elements keep out on their own: the phone sheets and backdrops (MOBILE_SHELL_PANEL_X_CLASS), dialogs, the omnibar and full-screen editors. The shell's decorative stars are absolute.
    • How to check it without a phone: set the variables to 59px at 874×402, or use Chromium's Emulation.setSafeAreaInsetsOverride. The e2e test "a phone turned sideways keeps the app out from under its camera" does both.

Translated packs on docs-i18n need the same section in every language folder (de, es, fr, hi, ja, ko, pl, pt-br, ru, zh-hans). Keep code identifiers and paths as they are, and use the final merged staging text.

Originally created by @SpicyMarinara on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8106 Originally assigned to: @SpicyMarinara on GitHub. English docs changed in #8105: `docs/development/ios-pwa-safe-area.md`. - A new section, "Landscape: the camera's side insets", sits before "How it was diagnosed". It explains: - When an iPhone is turned sideways, its camera sits at the left or right edge. iOS reports the space as `env(safe-area-inset-left)` and `env(safe-area-inset-right)` (about 59px on Dynamic Island models). Android keeps pages clear of the cutout, so the insets are 0 there. - `globals.css` reads the two insets once, into `--mari-safe-area-inset-left` and `--mari-safe-area-inset-right`; everything else reads the variables. `scripts/regressions/mobile-safe-area-inset.regression.ts` enforces it. - In the phone shell, `.mari-app` takes its left and right from the variables, so the page backing shows in the two strips like the status-bar strip in portrait. - Fixed elements keep out on their own: the phone sheets and backdrops (`MOBILE_SHELL_PANEL_X_CLASS`), dialogs, the omnibar and full-screen editors. The shell's decorative stars are `absolute`. - How to check it without a phone: set the variables to 59px at 874×402, or use Chromium's `Emulation.setSafeAreaInsetsOverride`. The e2e test "a phone turned sideways keeps the app out from under its camera" does both. Translated packs on `docs-i18n` need the same section in every language folder (de, es, fr, hi, ja, ko, pl, pt-br, ru, zh-hans). Keep code identifiers and paths as they are, and use the final merged `staging` text.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

Owner: @SpicyMarinara (Codex). Translation work is in draft PR #8129 against docs-i18n, using final merged staging text and all ten documentation / eleven UI packs where applicable.

<!-- gh-comment-id:6354428224 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): Owner: @SpicyMarinara (Codex). Translation work is in draft PR #8129 against docs-i18n, using final merged staging text and all ten documentation / eleven UI packs where applicable.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

Published in #8129 on docs-i18n at a97308a2a2. All ten packs now describe the current one-sided landscape shell gutter and separate native safe-area protection. All manifests validate and published raw bytes match the reviewed files. This closes the documentation follow-up; it does not claim physical-device verification.

<!-- gh-comment-id:6354716494 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): Published in #8129 on docs-i18n at a97308a2a2e28e6a010f0584b175a263864c80b4. All ten packs now describe the current one-sided landscape shell gutter and separate native safe-area protection. All manifests validate and published raw bytes match the reviewed files. This closes the documentation follow-up; it does not claim physical-device verification.
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#7562
No description provided.