Repository navigation
fix(ui): refine composer layout across screen sizes - #184759
Conversation
|
🦞👀 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. |
90bfe28 to
b1b0e19
Compare
|
Codex review: needs maintainer review before merge. What this changesThis PR unifies composer control geometry, moves the editor scrollbar toward the edge, and coordinates microphone disclosure timing. Example: Model and effort controls in a composer narrower than 560px.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a coherent composer layout repair, and source review found no definite introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherChat and New Session render shared composer controls and styles; viewport and container dimensions determine editor spacing, control geometry, and pointer presentation. flowchart TD
A[Chat page] --> C[Shared composer controls]
B[New Session page] --> C
C --> D[Shared composer surface styles]
D --> E[Responsive container rules]
C --> F[Microphone and tooltip owners]
E --> G[Rendered editor and action targets]
Technical reviewBest possible solution: Keep geometry in the shared composer styles and preserve the existing microphone, menu, and editing owners. Do we have a high-confidence way to reproduce the issue? Current-main CSS confirms inconsistent control geometry; the reported overlap and its correction were not independently reproduced under this read-only review. Is this the best way to solve the issue? The change uses existing shared layout owners, removes superseded overrides, and preserves interaction callbacks without adding competing state or rendering paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dea6ff0cd0a3. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +106. Total +106 across 5 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 26, 2026, 12:09 PM ET / 16:09 UTC. |
Keep the text inset constant with padding for short drafts and exchange it for the native gutter only when the existing overflow owner detects scrolling. This removes per-keystroke native layout overhead introduced by #184759 while preserving long-draft scrolling and shrink behavior. Advance the benchmark renderer before waiting for optional idle preloads so headless Chrome does not strand the callback.
* fix(ui): refine composer layout across screen sizes * fix(ui): keep narrow composer controls separate * fix(ui): preserve editable lines in short composers * test(ui): align responsive fixtures with native composer * test(ui): target editor before wheel geometry checks * test(ui): report composer scroll boundary diagnostics * fix(ui): preserve scrolling with stable textarea gutters * test(ui): remove temporary composer scroll diagnostics
* perf(ui): reserve composer scrollbar gutters only on overflow Keep the text inset constant with padding for short drafts and exchange it for the native gutter only when the existing overflow owner detects scrolling. This removes per-keystroke native layout overhead introduced by #184759 while preserving long-draft scrolling and shrink behavior. Advance the benchmark renderer before waiting for optional idle preloads so headless Chrome does not strand the callback. * fix(ui): retain composer gutter override specificity * test(ui): await the Home scroll target before settling * test(ui): observe each slash-menu keyboard selection * perf(ui): account for measured composer CSS cost * test(ui): await sidebar layout after metadata updates * test(ui): synchronize comment preview and identity setup
…#185199) * perf(ui): reserve composer scrollbar gutters only on overflow Keep the text inset constant with padding for short drafts and exchange it for the native gutter only when the existing overflow owner detects scrolling. This removes per-keystroke native layout overhead introduced by openclaw#184759 while preserving long-draft scrolling and shrink behavior. Advance the benchmark renderer before waiting for optional idle preloads so headless Chrome does not strand the callback. * fix(ui): retain composer gutter override specificity * test(ui): await the Home scroll target before settling * test(ui): observe each slash-menu keyboard selection * perf(ui): account for measured composer CSS cost * test(ui): await sidebar layout after metadata updates * test(ui): synchronize comment preview and identity setup
What Problem This Solves
Composer controls have inconsistent sizing, alignment, and spacing across desktop and mobile layouts, and the editor scrollbar sits too far from the edge.
User Impact
The chat and new-session composers share balanced controls, consistent text styling, and a less intrusive scrollbar while preserving their existing actions and touch targets. Very short panes retain a complete editable line.
Why This Change Was Made
Consolidates composer geometry, separates painted button size from the hit target, and coordinates the microphone disclosure and tooltip delay.
Evidence
Risk and coverage
The Linux desktop short-pane test currently reports a three-pixel scroll-boundary offset, at either end of the editor. This remains under investigation. The latest test change records geometry, caret, focus, and browser details on failure while preserving the original assertions, wheel input, and timeouts.
Visual validation
Before and after use the same content, theme, viewport, and state.