Repository navigation
fix: keep mobile composer buttons consistently sized - #180362
roboclaw-bot wants to merge 4 commits into
Conversation
Use shared compact targets and glyph sizes without changing Send/Stop switching. Preserve disjoint picker targets in narrow panes and assert rendered action geometry in the existing browser suite. Co-authored-by: hxy91819 <[email protected]>
Worked on by: - @hxy91819 Co-authored-by: hxy91819 <[email protected]> OpenClaw-Publication: a1d859ff-d814-4684-89e2-a48b3cd3f9cb
|
🦞👀 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. |
Merge main while retaining the composer sizing fix, current workspace-panel fixtures, and existing interaction coverage. Co-authored-by: hxy91819 <[email protected]>
Worked on by: - @hxy91819 Co-authored-by: hxy91819 <[email protected]> OpenClaw-Publication: c4ad0f6c-d76b-491f-9b0b-c50c75d03360
|
Codex review: needs changes before merge. What this changesThis PR gives compact composer icon buttons consistent sizes while preserving separate picker targets. Example: At a 393px viewport, an active conversation switches between a follow-up draft and an empty draft.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the visual fix is supported by screenshots, but an unchanged sibling test still asserts the retired Stop size and causes the required UI check to fail. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI composer renders draft-dependent actions and model controls; shared CSS determines their visible geometry and browser hit targets. flowchart LR
A[Draft and run state] --> B[Composer renderer]
B --> C[Send or Stop action]
D[Shared composer CSS] --> C
D --> E[Model and effort controls]
C --> F[Browser layout and hit targets]
E --> F
Technical reviewBest possible solution: Keep the shared CSS sizing fix and update the sibling mobile geometry expectations without weakening containment or reachability checks. Do we have a high-confidence way to reproduce the issue? The base CSS assigns different Send and Stop sizes, and the inspected before screenshot shows the mismatch; no target code was executed during this review. Is this the best way to solve the issue? Reusing existing composer tokens and deleting conflicting overrides is a focused solution that preserves the earlier picker-separation contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e8cde7518c55. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource -26, Tests +89. Total +63 across 5 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
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 22, 2026, 2:33 AM ET / 06:33 UTC. |
What Problem This Solves
Fixes: chat composer buttons look inconsistently sized on mobile, including a smaller Stop button when the primary action switches from Send.
User Impact
Mobile and narrow-pane icon buttons share 36×36px targets and ordinary 20px glyphs. Send and Stop no longer change outer size; the smaller 18px Stop square remains intentional. Desktop primary targets stay 32×32px. Sending, stopping, and draft switching are unchanged; no migration or user action is required.
Why This Change Was Made
Reuse the existing compact composer size tokens and remove conflicting per-control overrides. Very narrow panes reserve separate model, effort, and microphone targets instead of allowing overlap.
Production CSS is 26 lines smaller; browser tests add 89 net lines to protect rendered size equality, alignment, containment, reachability, and adjacent target separation. No new dependency, CI job, or CI step is introduced.
Evidence
22aecb4f4dfd3b0d765aa4825af562265c1194cb, both affected browser suites passed: 11/11 tests. Covered 320px, 393px, 560px, 1280px, and a 1100px desktop viewport narrowed by the Files panel.The initial current-main browser build stopped before tests because the checkout still had an older Solid dependency; the normal frozen install resolved it. The capture fixture was updated to focus the compact toolbar before waiting for its controls.
Before
After
Contributor credit
Requested and co-authored by @hxy91819.
Work sessions
Worked on by