[GH-ISSUE #5667] [Issue]: Remaining raw env(safe-area-inset-bottom) consumers still double-pad on Android Firefox #3138

Closed
opened 2026-10-21 05:59:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Romuromylus on GitHub (Aug 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5667

Originally assigned to: @Romuromylus on GitHub.

Summary

#5665 / #5666 fixed the Android Firefox double-compensated bottom padding on the mobile shell panels and the chat composer by routing them through the --mari-safe-area-inset-bottom override hook, which is zeroed for Gecko. Roughly 25 other client call sites still consume env(safe-area-inset-bottom) raw, so the same dead band (~ the navigation-bar height, up to their own caps) still appears on those surfaces in Firefox on Android.

Expected behavior

All bottom safe-area padding goes through var(--mari-safe-area-inset-bottom, env(safe-area-inset-bottom)) so the Gecko zero-override (and any future shell-published inset) applies consistently across every surface.

Actual behavior

Full-screen mobile modals and drawers still double-compensate on Android Firefox. Known raw consumers include: Modal.tsx (fullscreen mobile variant), ChatSettingsDrawer.tsx, ChatGalleryDrawer.tsx, ChatCommonOverlays.tsx, ChatSetupWizard.tsx, SelectionActionBar.tsx, MacroTextarea.tsx, AboutMeViewerModal.tsx, HomeBrowserHub.tsx, HomeProfessorMariChat.tsx, PresetEditor.tsx (modal shell), the game-asset modals (ImagePreviewModal, FileEditorModal, AudioPlayerModal), and the game overlays (GameCharacterSheet, GameInventory, GameNarration, GameReadableDisplay, GameSetupWizard, NewGameExperienceChooser), plus a few globals.css rules (e.g. the Professor Mari chat launcher offsets around lines 7241-7258).

Steps to reproduce

  1. Apply #5666 (or run staging once it lands) and open Marinara Engine in Firefox on Android.
  2. Open a full-screen mobile modal (e.g. a character editor) or the chat settings drawer.
  3. Observe an empty band above the system navigation bar, while the shell panels fixed by #5666 sit flush.

Environment

  • Marinara Engine version: 2.4.4, staging
  • Install type: source (Termux) / any
  • OS + version: Android
  • Browser or app shell: Firefox on Android (any Gecko browser)

Logs, screenshots, or video

See the screenshots on #5665 for the band's appearance; the remaining surfaces show the same artifact.

Additional context

Follow-up to #5665, split out of #5666 to keep that fix reviewable. The migration is mechanical (wrap each raw env(safe-area-inset-bottom) in the override var), but each surface should be eyeballed on iOS afterwards since several use it as a max() floor inside modal centering rather than as bottom-nav clearance.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Romuromylus on GitHub (Aug 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5667 Originally assigned to: @Romuromylus on GitHub. ## Summary #5665 / #5666 fixed the Android Firefox double-compensated bottom padding on the mobile shell panels and the chat composer by routing them through the `--mari-safe-area-inset-bottom` override hook, which is zeroed for Gecko. Roughly 25 other client call sites still consume `env(safe-area-inset-bottom)` raw, so the same dead band (~ the navigation-bar height, up to their own caps) still appears on those surfaces in Firefox on Android. ## Expected behavior All bottom safe-area padding goes through `var(--mari-safe-area-inset-bottom, env(safe-area-inset-bottom))` so the Gecko zero-override (and any future shell-published inset) applies consistently across every surface. ## Actual behavior Full-screen mobile modals and drawers still double-compensate on Android Firefox. Known raw consumers include: `Modal.tsx` (fullscreen mobile variant), `ChatSettingsDrawer.tsx`, `ChatGalleryDrawer.tsx`, `ChatCommonOverlays.tsx`, `ChatSetupWizard.tsx`, `SelectionActionBar.tsx`, `MacroTextarea.tsx`, `AboutMeViewerModal.tsx`, `HomeBrowserHub.tsx`, `HomeProfessorMariChat.tsx`, `PresetEditor.tsx` (modal shell), the game-asset modals (`ImagePreviewModal`, `FileEditorModal`, `AudioPlayerModal`), and the game overlays (`GameCharacterSheet`, `GameInventory`, `GameNarration`, `GameReadableDisplay`, `GameSetupWizard`, `NewGameExperienceChooser`), plus a few `globals.css` rules (e.g. the Professor Mari chat launcher offsets around lines 7241-7258). ## Steps to reproduce 1. Apply #5666 (or run staging once it lands) and open Marinara Engine in Firefox on Android. 2. Open a full-screen mobile modal (e.g. a character editor) or the chat settings drawer. 3. Observe an empty band above the system navigation bar, while the shell panels fixed by #5666 sit flush. ## Environment - Marinara Engine version: 2.4.4, staging - Install type: source (Termux) / any - OS + version: Android - Browser or app shell: Firefox on Android (any Gecko browser) ## Logs, screenshots, or video See the screenshots on #5665 for the band's appearance; the remaining surfaces show the same artifact. ## Additional context Follow-up to #5665, split out of #5666 to keep that fix reviewable. The migration is mechanical (wrap each raw `env(safe-area-inset-bottom)` in the override var), but each surface should be eyeballed on iOS afterwards since several use it as a `max()` floor inside modal centering rather than as bottom-nav clearance. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:59:55 +07:00
Author
Owner

@Romuromylus commented on GitHub (Aug 30, 2026):

Fixed by #5675, squash-merged into staging as bddb668. Every remaining raw env(safe-area-inset-bottom) consumer in the app client now routes through the Gecko-aware override hook, and the mobile-safe-area-inset regression sweeps the client source so a raw consumer can't silently return.

<!-- gh-comment-id:5468909241 --> @Romuromylus commented on GitHub (Aug 30, 2026): Fixed by #5675, squash-merged into staging as bddb668. Every remaining raw env(safe-area-inset-bottom) consumer in the app client now routes through the Gecko-aware override hook, and the mobile-safe-area-inset regression sweeps the client source so a raw consumer can't silently return.
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#3138
No description provided.