mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6820] [MERGED] fix(mobile): keep zoomed composers visible and match menu colors #7343
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#7343
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/6820
Author: @SpicyMarinara
Created: 9/28/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/6811-zoomed-chat-keyboard📝 Commits (10+)
b1d5cdetest: cover mobile keyboard while chat is zoomeda432721fix: track keyboard geometry without treating pinch zoom as occlusion00707c4fix: reset keyboard height baseline when viewport width changesb794172fix: preserve keyboard inset through split-view resizingf080130test: capture zoomed composer after viewport settles853fcd0fix(ui): match mobile menu resource icon colorsb595463test(ui): check textarea stays inside zoomed keyboard viewporteee32dbMerge branch 'staging' into fix/6811-zoomed-chat-keyboard7454d0edocs(ui): note keyboard and split-view baseline ceilingd6e1f9aMerge remote-tracking branch 'origin/staging' into fix/6811-zoomed-chat-keyboard📊 Changes
4 files changed (+154 additions, -10 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
e2e/core-flows.e2e.ts(+120 -0)📝
packages/client/src/components/layout/AppShell.tsx(+29 -10)📝
packages/client/src/components/layout/TopBar.tsx(+2 -0)📄 Description
Linked issue
Closes #6811
Why this change
When a mobile user zoomed the page before opening the keyboard, the chat composer could remain behind it. The shared viewport handler returned immediately at any pinch scale other than 1, ignoring keyboard resize and dismissal events.
The mobile More menu also omitted the Characters and Settings icon colors, so they inherited the global accent instead of their pink and gray panel colors.
What changed
The existing handler now compares viewport heights after accounting for pinch scale, so zoom alone does not trigger keyboard mode. While the keyboard is open, the shell uses the actual visible height. Dismissing the keyboard restores the normal layout even if zoom and textarea focus remain. Width changes adjust the existing height baseline by the layout-height difference, preserving an open keyboard across split-view resizing. No new dependency, component or browser-specific branch is needed.
A retained regression covers scales 1.05, 1.25 and 2, draft preservation, dismissal without blur, split-view resizing both before and during keyboard use, and Android-style layout resizing. The mobile More menu also uses the existing pink Characters and gray Settings resource tokens, matching the corresponding panels. The Unreleased changelog records both fixes.
Validation
Current published head:
eee32db78468ef28a2fa5645883bd75ee5e94ae3is a clean merge of the feature head below with stagingfd859ccd. Git merge-tree verification found no conflict resolutions or feature edits. The combined candidate867d64d0208e49cce13c40310d81839756fad787preserves all three PRs and Kolache’s staging changes, and passes freshpnpm install,pnpm check, and UI smoke 7/7. Only the changelog overlaps; all feature source/test blobs match their reviewed and tested heads.Feature head:
b595463bac3bef29d96965e599c0eac93fd2e3e9. The viewport handler remains unchanged fromb79417220;f080130a4corrected screenshot timing.853fcd09eadds only two existing resource-color classes and a changelog entry. The final test-only commit strengthens textarea containment assertions at every keyboard-open geometry.pnpm installandpnpm checkpassed at853fcd09e, with unchanged final product source (localization, formatting, lint/types and production build).pnpm smoke:ui: 7 passed at853fcd09e. A disposable actual-browser proof checked Characters pink (#f472b6) and Settings gray (#9ca3af) in mobile Chromium and WebKit, dark and light modes: 4 passed. Before/after screenshots were inspected; no retained test is needed for these two class additions.b1d5cdea2: zoomed keyboard events never enabled keyboard mode.b79417220(unchanged production code).pnpm smoke:ui: 7 passed atb79417220(unchanged production code).f080130a4.c172ae4cwith the final viewport handler. Its request for stronger textarea containment assertions is addressed and revalidated inb595463b. Its clamp suggestion was dismissed becauseMath.max(largestViewportHeight, unzoomedHeight)already clamps the adjusted baseline before use; reseeding on blur could prematurely expand the shell while a keyboard is closing. Independent review confirmed these reasons.Commands for the focused runs:
Manual verification notes
Reviewed before/after browser screenshots from disposable chats. Keyboard measurements are simulated through VisualViewport; no physical Android Firefox keyboard session was available. Chromium's existing native pinch test passed; WebKit's two-finger pinch remains a physical-device check. No UI copy, theme tokens or persisted storage changed.
Docs and release impact
Unreleased changelog entries for the keyboard fix and matching mobile menu colors. No version bump or user-guide changes.
UI evidence
Before/after Chromium and WebKit screenshots with exact revisions and simulation limits. Download/open the self-contained HTML to view the embedded screenshots.
Mobile More menu before/after screenshots, including both themes and browser engines. Download/open the self-contained HTML to view the embedded screenshots.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.