mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7025] [MERGED] fix(chat): keep the edited Chat Summary field above the phone keyboard #7436
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#7436
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/7025
Author: @SpicyMarinara
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/mobile-summaries-keyboard-6993📝 Commits (9)
75edd96fix(chat): keep the edited Chat Summary field above the phone keyboarda2c77aefix(chat): hide Chat Summary's bottom controls while typing on phonesa4676bdMerge remote-tracking branch 'origin/staging' into fix/mobile-summaries-keyboard-6993c50584afix(chat): show a tall Chat Summary field from its first lines in landscape42b7047Merge remote-tracking branch 'origin/staging' into fix/mobile-summaries-keyboard-69933f653bdfix(chat): keep Chat Summary taps on target while the keyboard is open79c15e3Merge remote-tracking branch 'origin/staging' into fix/mobile-summaries-keyboard-69932c05325Merge remote-tracking branch 'origin/staging' into fix/mobile-summaries-keyboard-6993777466dMerge remote-tracking branch 'origin/staging' into fix/mobile-summaries-keyboard-6993📊 Changes
6 files changed (+331 additions, -4 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
e2e/summary-controls.e2e.ts(+203 -1)📝
packages/client/src/components/chat/ChatToolbarControls.tsx(+11 -2)📝
packages/client/src/components/chat/SummaryPopover.tsx(+3 -1)➕
packages/client/src/hooks/use-keep-focused-field-above-keyboard.ts(+100 -0)📝
packages/client/src/styles/globals.css(+12 -0)📄 Description
Linked issue
Closes #6993
Why this change
On phones, the summary prompt and the summaries in Chat Summary (Roleplay) couldn't be edited. When the keyboard opened, the window shrank to the space above it, and the field being typed in was pushed out of view.
What changed
Field stays visible: a small hook (
use-keep-focused-field-above-keyboard.ts) keeps the focused field in view above the keyboard, including sideways. A tall field is shown from its first lines.Room to type:
data-keyboard-hides-footerwhile the keyboard is open. Before, the controls followed live:focus-within, which moved things under the finger.Taps land where you tap:
Tests:
e2e/summary-controls.e2e.tscovers:Each fails without its part of the fix.
CHANGELOG: one entry.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent:
pnpm check,pnpm localization:check,check:e2e-typesandgit diff --checkpass.e2e/summary-controls.e2e.tsand the Chat Summary cases incore-flowspass on mobile-chromium and mobile-webkit.Known and not fixed here, because both already happen on staging:
Still to verify by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG updated; no user docs change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.