Repository navigation
fix(ui): mobile composer sits too close to the bottom of the screen - #188517
Conversation
#184759 lowered the native mobile composer's bottom gap from 10px to 6px. Restore 10px for resting and editing states and pin it with a browser test. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 860a1065-18c8-454d-80c1-219cf1d84258
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
…on mobile The restored 10px mobile composer gap makes the transcript 4px shorter, so expanded tool results push the next user turn past the mounted transcript window. Scroll the thread to the end before comparing their positions. Co-authored-by: vyctorbrzezowski <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesThis PR restores the mobile chat composer's bottom gap from 6px to 10px and adds a browser regression test. Example: Mobile chat at a 390×844 viewport.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused mobile-spacing adjustment, and review found no introduced correctness defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe chat pane supplies mobile presentation state to the existing composer, whose stylesheet controls the rendered bottom margin in both resting and editing states. flowchart TD
A[Chat pane mobile host] --> B[Composer presentation props]
B --> C[Composer shell]
C --> D[Mobile composer stylesheet]
D --> E[Rendered bottom spacing]
Technical reviewBest possible solution: Keep the spacing adjustment in the existing mobile stylesheet with one regression covering rendered clearance in both composer states. Do we have a high-confidence way to reproduce the issue? Current-main CSS establishes the 6px margin, and the supplied before screenshot shows the cramped presentation; this read-only review ran no target code. Is this the best way to solve the issue? The one-value stylesheet change is the smallest complete adjustment, and the added browser test measures actual layout rather than copying a CSS value. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8628e13b8db8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +16. Total +16 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 30, 2026, 12:39 PM ET / 16:39 UTC. |
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f5685a3d-7364-48c6-940c-736b9727c79a



Related: #184759
What Problem This Solves
Fixes: the mobile web UI composer sits only 6px above the bottom of the screen, so it feels cramped against the edge in both the resting one-line state and while editing.
User Impact
User impact: the mobile composer gets its 10px bottom breathing room back. Desktop and narrow-desktop composers are unchanged.
Why This Change Was Made
#184759 (composer layout refinement) lowered
--chat-composer-bottom-gapfor the native mobile composer (.agent-chat__composer-shell[data-mobile-composer="true"], rendered whenever the chat pane uses the mobile host) from 10px to 6px. This restores 10px on that selector only. The inner footer padding changes from that PR are left as they are. The short-pane (keyboard) container query is unaffected because the mobile selector already outranks it.The 4px it takes back from the transcript on a 390×844 phone pushed the next user turn in
chat-swarm-lifecycle.e2e.test.ts(mobile case) past the mounted transcript window after its tool results expand, so that test now scrolls the thread to the end before comparing positions. The ordering assertion is unchanged.Evidence
keeps the mobile composer 10px above the bottom edge while resting and editinginui/src/pages/chat/chat-composer-mobile.browser.test.tsx: fails on current main (expected 6 to be close to 10) and passes with the fix. The full file passes (12/12, three consecutive runs).chat-swarm-lifecycle.e2e.test.ts: the mobile case failed on the first CI run of this PR and reproduced locally with 10px. It passes with 6px, and both viewports pass with the scroll step.keeps attachment chips at the editing inset in the one-line mobile composeronce (expected null to be truthywaiting for the remove button). It passes on main and in three local runs of the full file with this change; it looks like a timing flake. This run's CI is the check.pnpm dev:ui:mock), Chromium at 390×844 mobile viewport,data-mobile-composer="true"confirmed. The measured gap between the composer surface and the viewport bottom is 6px before and 10px after.oxfmt --check,stylelintandgit diff --checkare clean on the changed files.Before/after screenshots follow below.
Work sessions
Worked on by