Repository navigation
fix(ui): give mobile sidebar titles more reading space - #160366
Conversation
Widen the phone drawer, reduce stacked gutters and pinned-row insets, and remove empty metadata slots without shrinking text or 44px menu targets. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 8e0d3930-8b13-453d-823f-a05ca4a3be09
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 3:50 PM ET / 19:50 UTC (Revision 4). ClawSweeper reviewWhat this changesAdjusts the Control UI mobile drawer and session-row spacing to give titles more room, adds browser layout assertions, and synchronizes an existing startup test with request dispatch. Merge readiness✅ Ready for maintainer review Keep open. Current main retains the narrow mobile drawer despite an earlier released sidebar-title improvement, and this PR addresses the remaining space constraint with credible browser proof. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI displays Gateway sessions in a responsive navigation sidebar. On narrow screens, that sidebar becomes a drawer whose layout divides space among titles, metadata, and menus. flowchart LR
A[Gateway session list] --> B[Control UI session rows]
C[Viewport and safe area] --> D[Mobile drawer layout]
B --> D
D --> E[Title and metadata space]
E --> F[Visible titles and menus]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +17, Tests +22. Total +39 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the narrower title layout while preserving safe-area bounds, scrollbar clearance, metadata visibility, desktop sizing, and 44 px menu targets. Do we have a high-confidence way to reproduce the issue? Yes. Current-main CSS establishes the 320 px drawer and wider inner gutters, and the PR describes a specific 390 px mock-Gateway browser measurement of the resulting title space. Is this the best way to solve the issue? Yes. The change uses the existing responsive CSS and row renderer, with focused checks for metadata and menu reachability. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 89c0030e4c45. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 8d461c47-da59-46b1-9fdd-17ca2738dc31
Resolve the actual main conflict by keeping its safe-area positioning and max-width with the reviewed 336px drawer. Direct Chromium proof passed six phone, safe-inset, landscape, mouse and desktop scenarios; focused formatting/style checks and fresh independent review passed. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: e2bdfc2c-f10d-4fcd-8900-fd913449dd39
Restore the existing 8px clearance without weakening layout checks. Synchronize the inherited cold-start coalescing test with its actual RPC dispatch and retain the completed-flow exactly-one assertion. Co-authored-by: vyctorbrzezowski <[email protected]>
Preserve the current main palette and safe-area owners with the approved 336px drawer and restored 8px scrollbar clearance. Focused geometry and independent review passed. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: fd9c4666-0b9f-48df-8588-5373febfaf2a
|
Merged via squash.
|
* fix(ui): give mobile sidebar titles more reading space Widen the phone drawer, reduce stacked gutters and pinned-row insets, and remove empty metadata slots without shrinking text or 44px menu targets. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): give mobile sidebar titles more reading space Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 8e0d3930-8b13-453d-823f-a05ca4a3be09 * fix(ui): give mobile sidebar titles more reading space Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 8d461c47-da59-46b1-9fdd-17ca2738dc31 * fix(ui): give mobile sidebar titles more reading space Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: e2bdfc2c-f10d-4fcd-8900-fd913449dd39 * fix(ui): preserve sidebar scrollbar clearance and await startup dispatch Restore the existing 8px clearance without weakening layout checks. Synchronize the inherited cold-start coalescing test with its actual RPC dispatch and retain the completed-flow exactly-one assertion. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): give mobile sidebar titles more reading space Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: fd9c4666-0b9f-48df-8588-5373febfaf2a --------- Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes: mobile sidebar session titles are cut off too early because stacked gutters and empty metadata slots consume reading space.
User Impact
At a 390 px viewport, the drawer increases only 320 → 336 px, while usable title width increases 190 → 244 px. Of the 54 px gained, 38 px comes from internal layout. Text size, 44 px touch targets, and the desktop sidebar are unchanged.
Why This Change Was Made
Cap the drawer at 336 px (90vw on smaller phones), tighten row inset/gap to 2/4 px, and omit empty metadata slots. Keep 8 px outer gutters for the existing classic-scrollbar clearance contract. Retain useful previews, status and Incognito badges, child toggles, current-main safe-area bounds, and palette shadows.
Evidence
Before / after
390 × 760 px, dark theme, matching mock data and state. Before is the first PR revision (366 px drawer); After is the final 336 px drawer with 8 px scrollbar clearance. The original shipping drawer was 320 px.
Before — first PR revision
After — final width and scrollbar clearance
Worked on by
Work sessions
View the OpenClaw team session