mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5666] [MERGED] fix(client): stop Gecko's misreported bottom safe-area inset from obscuring mobile panels #6874
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#6874
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/5666
Author: @Romuromylus
Created: 8/30/2026
Status: ✅ Merged
Merged: 8/30/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/android-gecko-bottom-safe-area📝 Commits (5)
495e25ffix(client): stop Gecko's misreported bottom safe-area inset from obscuring mobile panels7a8d202fix(client): fold the Gecko safe-area override into the existing @supports blocka5ce6c7Merge branch 'staging' into fix/android-gecko-bottom-safe-area987c678Merge branch 'staging' into fix/android-gecko-bottom-safe-areaaae4318Merge branch 'staging' into fix/android-gecko-bottom-safe-area📊 Changes
5 files changed (+61 additions, -3 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/layout/AppShell.tsx(+2 -1)📝
packages/client/src/styles/globals.css(+9 -0)📝
scripts/regressions/agent-catalog-kind-badges.regression.ts(+2 -2)➕
scripts/regressions/mobile-safe-area-inset.regression.ts(+47 -0)📄 Description
Linked issue
Closes #5665
Why this change
Firefox on Android shows a large empty band above the system navigation bar on the mobile shell panels (Agents, Connections, Presets, chats sidebar, detail sheets, tracker) and pushes the chat composer up by the same amount, clipping content. The homepage is unaffected (it isn't a fixed shell panel), the APK wrapper only shows the intended 0.5rem breathing floor, and desktop Firefox is clean — exactly the inconsistency reported in #5665.
Root cause: Gecko on Android reports
env(safe-area-inset-bottom)as the system navigation-bar height even though its layout viewport already stops above the bar. Withviewport-fit=coverin our viewport meta, every consumer of the rawenv()value double-compensates: the panel reserves navigation-bar space that the browser has already reserved, producing a dead band of roughly the bar's height. The 3rem cap added in #5508 bounded the band but could not remove it — a ~48px navigation bar sits right at the cap.What changed
packages/client/src/styles/globals.css: publish a0pxoverride through the existing--mari-safe-area-inset-bottomhook (introduced by the mobile composer keyboard-inset fix) inside a@supports (-moz-appearance: none)block — the same Gecko probe the stylesheet already uses for the Firefox blur workaround. Desktop Firefox reportsenv()as0px, so the override is a no-op there; WebKit/Blink don't match the probe at all. Inline-style injections still win over the:rootrule (today only the e2e keyboard-inset hook sets the var; the rule keeps that path open for any shell that publishes a real inset later).packages/client/src/components/layout/AppShell.tsx:MOBILE_SHELL_PANEL_BOTTOM_PADDING_CLASSnow prefersvar(--mari-safe-area-inset-bottom, env(safe-area-inset-bottom))over rawenv(), matching what.chat-input-containeralready does. Floor (0.5rem) and cap (3rem) are unchanged.scripts/regressions/mobile-safe-area-inset.regression.ts(new): pins the Gecko override block, the composer's var-preference, and the shell-panel class shape.scripts/regressions/agent-catalog-kind-badges.regression.ts: updated the pinned shell-panel class assertion from #5508 to the new var-preferring form.CHANGELOG.md: Unreleased → Fixed entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
env()fallback; injecting--mari-safe-area-inset-bottom: 48pxinline flips the padding to 48px (proving the hook is preferred overenv(), the path iOS shells and the e2e test use);100pxstays capped at 3rem.@supportsprobe is byte-identical to the Firefox blur-workaround block already shipping inglobals.css, so engine matching is established behavior.node ./scripts/run-regressions.mjs --filter mobile-safe-area-insetand--filter agent-catalog-kind-badgesboth pass.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)
Follow-ups
env(safe-area-inset-bottom)consumers (full-screen modals, drawers, game overlays) to the same override hook so they stop double-padding on Android Firefox too. Kept out of this PR to keep the diff reviewable.Summary by CodeRabbit
Bug Fixes
Tests
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.