mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7499] [MERGED] fix(mobile): keep World Maps' editor full height with the phone keyboard #7763
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#7763
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/7499
Author: @SpicyMarinara
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7452-keyboard-viewport-restore📝 Commits (2)
ef71fc3fix(mobile): keep full-screen package editors full height with the keyboard (#7452)eb2d4b6test(mobile): note the after-close keyboard check is a regression guard📊 Changes
2 files changed (+110 additions, -4 deletions)
View changed files
📝
e2e/core-flows.e2e.ts(+99 -0)📝
packages/client/src/styles/globals.css(+11 -4)📄 Description
Linked issue
Closes #7452
Why this change
On Android Chrome, editing a map in the World Maps library broke once the on-screen keyboard opened: the editor shrank, its form stopped scrolling, and the header with Save went out of reach, so changes could not be saved.
The cause is in the Engine, not in World Maps. The Engine has a keyboard rule for floating panels portalled into
<body>(html[data-mari-software-keyboard-open] body > [data-chat-floating-panel]:focus-within). It moves the focused panel to the top of the visible screen and lets it shrink to its content. That works for small chat menus. World Maps, though, opens its map editor and library as a full-screen layer carryingdata-chat-floating-panel, so that Chat Settings treats taps inside it as its own. Once that layer shrinks to its content, its inner panes lose their fixed height. The form grows to its full length instead of scrolling, and the browser scrolls the whole clipped editor to show the field, which pushes the header and Save off the top. The Engine already kept its own full-screen layers out of this rule (.mari-modal,ExpandedTextarea). Package editors were not kept out.Ownership: Engine (host keyboard/viewport CSS in
packages/client/src/styles/globals.css). World Maps' markup did nothing wrong, and no package release is needed. The published World Maps 1.5.1 overlays all have a direct.mari-editor-shell.flex-1child, so they are covered as soon as this Engine change ships.What changed
staging(see the warning above)..mari-modal), so they fit the area above the keyboard..mari-editor-shell.flex-1child match. No Engine panel has that shape (Preset Variables' editor shell has noflex-1). Engine editors (characters, lorebooks, agents and so on) open in the app's detail sheet, which this rule never touched.e2e/core-flows.e2e.ts: builds the same layer World Maps uses, opens the keyboard (Android: layout viewport resize; iPhone: mocked visual viewport), scrolls the field into view as the browser does, then checks that Save and the field stay visible. It then closes the keyboard with the field still focused and checks that the editor fills the screen again. Only the keyboard-open half fails onstaging; the after-close half is a regression guard and is commented as such.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent notes (commands run, not a substitute for the boxes above):
npx playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=mobile-chromium --project=mobile-webkit -g "full-screen package editor"oneb2d4b640: 2 passed.globals.cssrestored tostaging(onef71fc3e9): fails on both mobile projects at the keyboard-open check: the layer sits at 9–472 px instead of 0–480 px, andsaveVisibleisfalse.staging's CSS, World Maps' DOM and the same keyboard emulation: after the keyboard closes (field still focused), the layer is back at full height with Save visible on both mobile-chromium (0–844 px) and mobile-webkit (0–659 px). So the after-close persistence in #7452 was not reproduced.pnpm checkoneb2d4b640: exit 0. The one ESLint warning is the pre-existingreact-hooks/exhaustive-depswarning inHomeProfessorMariChat.tsx, which this PR does not touch.globals.cssoneb2d4b640(node scripts/run-regressions.mjs --filter ...):floating-window,mobile-safe-area-inset,music-dj-and-floating-ui,mobile-tracker-help-layout: all passed.ef71fc3e9: neighbouring mobile keyboard e2e (Chat Summary, Conversation Presence, chat composer, pinch zoom): 13 passed, 5 skipped by their own project guards;open-issuesandtracker-gallery-uiregressions passed.coderabbit review --agent --committed --base-commit 9fd6e0900): completed onef71fc3e9with 0 findings. Oneb2d4b640(which only adds a two-line comment to the test) it could not run: the shared CodeRabbit quota was rate limited on all 7 attempts over about 15 minutes. GitHub CodeRabbit also reported "Review rate limited" on this PR, so it has not reviewed it yet either.Manual verification notes
Manual verification needed (not done by the agent; no Android device was available). Steps 3 and 4 are the issue's main symptom and should gate merging:
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)
Playwright screenshots are kept under
test-results/on failure only. None are attached; the manual steps above cover the device check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.