mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5675] [MERGED] fix(client): route all bottom safe-area consumers through the Gecko-aware override hook #6878
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6878
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5675
Author: @Romuromylus
Created: 8/30/2026
Status: ✅ Merged
Merged: 8/30/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/safe-area-inset-bottom-consumers📝 Commits (2)
e9b0ad8fix(client): route all bottom safe-area consumers through the Gecko-aware override hook6e48927Merge branch 'staging' into fix/safe-area-inset-bottom-consumers📊 Changes
24 files changed (+64 additions, -33 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
packages/client/src/components/chat/ChatCommonOverlays.tsx(+2 -2)📝
packages/client/src/components/chat/ChatGalleryDrawer.tsx(+1 -1)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+3 -3)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+1 -1)📝
packages/client/src/components/chat/HomeBrowserHub.tsx(+2 -2)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+1 -1)📝
packages/client/src/components/chat/NewChatConnectionGate.tsx(+1 -1)📝
packages/client/src/components/game-assets/AudioPlayerModal.tsx(+1 -1)📝
packages/client/src/components/game-assets/FileEditorModal.tsx(+1 -1)📝
packages/client/src/components/game-assets/ImagePreviewModal.tsx(+1 -1)📝
packages/client/src/components/game/GameCharacterSheet.tsx(+1 -1)📝
packages/client/src/components/game/GameInventory.tsx(+1 -1)📝
packages/client/src/components/game/GameNarration.tsx(+1 -1)📝
packages/client/src/components/game/GameReadableDisplay.tsx(+1 -1)📝
packages/client/src/components/game/GameSetupWizard.tsx(+1 -1)📝
packages/client/src/components/game/NewGameExperienceChooser.tsx(+1 -1)📝
packages/client/src/components/modals/AboutMeViewerModal.tsx(+1 -1)📝
packages/client/src/components/presets/PresetEditor.tsx(+1 -1)📝
packages/client/src/components/ui/MacroTextarea.tsx(+2 -2)...and 4 more files
📄 Description
Linked issue
Closes #5667
Why this change
#5666 fixed the Android Firefox dead band above the system navigation bar, but only for the mobile shell panels and the chat composer — the two surfaces #5665 reported. Gecko's Android build reports
env(safe-area-inset-bottom)as the navigation-bar height even though its layout viewport already stops above the bar, so any rawenv()consumer double-compensates into an empty band that clips content. Roughly two dozen other client call sites still consumed the inset raw: full-screen mobile modals, the chat settings and gallery drawers, the setup wizards, the game overlays (character sheet, inventory, narration, readables), the selection action bar, the browser hub, and the floating launcher/call buttons all still showed the band on Android Firefox.What changed
env(safe-area-inset-bottom)in the override hook #5666 introduced —var(--mari-safe-area-inset-bottom, env(safe-area-inset-bottom))— across 21 client components and the four floating-launcher rules inglobals.css(32 call sites total). The hook is zeroed for Gecko via the existing single@supports (-moz-appearance: none)block; no new@supportsblock is introduced. Non-Gecko engines are unchanged because the var falls back toenv()wherever the override is not set, including the sites that use the inset as amax()floor inside modal centering. Top/left/right insets are untouched.scripts/regressions/mobile-safe-area-inset.regression.tswith a sweep overpackages/client/srcthat fails if any rawenv(safe-area-inset-bottom)consumer reappears outside the override-hook fallback, so new surfaces can't silently reintroduce the band.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkpasses locally;node ./scripts/run-regressions.mjs --filter mobile-safe-area-insetand--filter roleplay-streamingboth pass (the latter guards the single-Gecko-@supports-block invariant this change must not break).var(--mari-safe-area-inset-bottom, …)occurrences (identical class strings dedupe) and zeroenv(safe-area-inset-bottom)outside the fallback position.max()floors,calc()offsets), so iOS/Chromium resolve to byte-identical values. Remaining to eyeball on devices: a full-screen modal and the chat settings drawer on Android Firefox (band gone, flush with the fixed shell panels) and once on iOS Safari (home-indicator clearance unchanged).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
See the screenshots on #5665 for the band's appearance; the affected surfaces here show the same artifact until this change and match the fixed shell panels after it.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.