Repository navigation
improve(ui): align sidebar rail pitch and panel row insets - #196135
Conversation
The rail's New session button was a 30px control between 36px neighbors, with an 11px gap above it, a divider and a 20px gap below, before the views settled into their 8px pitch. In the panel, Sessions rows and section headers painted their fills 2px inside the content box while Pages and Users rows ran flush, and Pages used its own lead/text columns (69/97) next to the Sessions and Users columns (72/100). Empty, loading, pagination and "Show more" states each sat at a slightly different x. Give every rail control one box (36px, 38px on coarse pointers) and one 8px pitch from the agent card down to Search; New session keeps only its accent fill. Make the desktop sidebar inset 10px so every view's fill starts at the panel content edge with the lead column 12px and the text column 40px inside it, and express the Pages links, pinned rows, Users rows, roster headers and hints through the same tokens. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 75ad2e3a-cd21-45ac-80ae-e607f1c8ba56
|
🦞👀 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. What this changesUnify sidebar rail control sizes and spacing, and align panel fills, icons, titles, and hints through existing sidebar tokens. Example: Desktop Control UI at 1400×900
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, maintainer-directed visual improvement with no remaining actionable findings; the prior RTL padding defect is fixed. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI sidebar renders navigation, sessions, people, and agent rosters; shared CSS converts those rendered views into aligned rail controls and panel rows. flowchart LR
A[Navigation and session state] --> B[Sidebar components]
B --> C[Rail controls]
B --> D[Panel views]
E[Shared sidebar CSS tokens] --> C
E --> D
Technical reviewBest possible solution: Land the focused shared-CSS change with its consolidated browser geometry regression. Do we have a high-confidence way to reproduce the issue? The base CSS defines the separate 30px New session control and differing panel insets, matching the inspected before screenshots; no target code was executed during this review. Is this the best way to solve the issue? The patch uses existing layout tokens and control rules, removes the competing action-size override, and extends the existing browser scenario without adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 81ab38df631c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +54, Other +2. Total +57 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 HistoryReview history (1 earlier review cycle)
Reviewed November 9, 2026, 1:27 PM ET / 18:27 UTC (Revision 2). |
The Users row and pinned Pages rows expressed their new token-based lead inset with physical padding, so Arabic and Persian layouts moved the avatar and title 4px toward the trailing edge. Use padding-inline so the inset mirrors with the reading direction, as the existing Users layout did. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: c6bd2d2d-77e8-4542-ba78-daf640c89c1e
The rail pitch and cross-view column assertions reused the alignment test's fixture, so measure them in that test instead of a second page load. Record the remaining net test-line growth in a tracked allocation for the checks-fast-baseline-ratchets gate. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: d2afbd30-2e15-45d1-9720-5f79de98d3b4
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…196135) * improve(ui): align sidebar rail pitch and panel row insets The rail's New session button was a 30px control between 36px neighbors, with an 11px gap above it, a divider and a 20px gap below, before the views settled into their 8px pitch. In the panel, Sessions rows and section headers painted their fills 2px inside the content box while Pages and Users rows ran flush, and Pages used its own lead/text columns (69/97) next to the Sessions and Users columns (72/100). Empty, loading, pagination and "Show more" states each sat at a slightly different x. Give every rail control one box (36px, 38px on coarse pointers) and one 8px pitch from the agent card down to Search; New session keeps only its accent fill. Make the desktop sidebar inset 10px so every view's fill starts at the panel content edge with the lead column 12px and the text column 40px inside it, and express the Pages links, pinned rows, Users rows, roster headers and hints through the same tokens. Co-authored-by: vincentkoc <[email protected]> * improve(ui): align sidebar rail pitch and panel row insets Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 75ad2e3a-cd21-45ac-80ae-e607f1c8ba56 * fix(ui): keep sidebar row lead inset logical in RTL The Users row and pinned Pages rows expressed their new token-based lead inset with physical padding, so Arabic and Persian layouts moved the avatar and title 4px toward the trailing edge. Use padding-inline so the inset mirrors with the reading direction, as the existing Users layout did. Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ui-rhythm-sidebar-rail Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: c6bd2d2d-77e8-4542-ba78-daf640c89c1e * test(ui): fold sidebar rhythm geometry into the rail alignment test The rail pitch and cross-view column assertions reused the alignment test's fixture, so measure them in that test instead of a second page load. Record the remaining net test-line growth in a tracked allocation for the checks-fast-baseline-ratchets gate. Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ui-rhythm-sidebar-rail Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: d2afbd30-2e15-45d1-9720-5f79de98d3b4 --------- Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
The Control UI sidebar rail and panel lack one rhythm: the New session button is a 30px control between 36px neighbors with an 11px gap above it and a divider plus 20px gap below, and the panel lists paint their fills and align their icons and titles differently depending on which view (Sessions, Pages, Users, agent roster) is showing.
User Impact
User impact: the rail reads as one column of equal controls with an even 8px pitch, and every sidebar view (Sessions rows and section headers, Pages links, pinned rows, Users rows, agent roster headers, empty/loading/"Show more"/pagination states) shares one fill edge, one lead column and one text column. No functional change.
Why This Change Was Made
Part of the Control UI rhythm pass requested by @vincentkoc ("there should be vertical/horizontal rhythm… the left side panel should have padding and either left icons aligned or centered"). Measured on the mocked Control UI at 1400×900 in native-macOS mode:
The rail drops the separate
--sidebar-rail-action-sizeand the desktop divider under New session; the accent fill is what distinguishes it. The panel replaces the desktop-onlymargin-inline: -6pxoverride on the session list with a desktop--sidebar-inset: 10px, so fills run flush with the panel content box while the existing--sidebar-text-offsetconsumers keep the lead/text columns where they were. Pages links, pinned rows, Users rows, the roster header and the hints now derive their inset from the same tokens instead of literal 8/11/12px values.Deliberate decisions and accepted edges:
.sidebar-sessions--removal-drop(drag-to-remove highlight) no longer has a 2px frame around rows; rows now sit flush with the highlight edge.--catalog), and the child-load error row's +3px.Evidence
ui/src/e2e/sidebar-rail-alignment.e2e.test.tsgains "keeps one rail control size and pitch, and one row inset across panel views" (touch and non-touch): red on the base (sidebar-new-session30px vs 36px; 17px gap vs 8px), green with the fix.sidebar-selection-overflow,sidebar-session-stability,sidebar-agent-first,sidebar-pinned-agents*,native-desktop-titlebar,mobile-sidebar-session-menu),sidebar-attention-layoutandsidebar-regionbrowser tests,pnpm lint:ui:styles, oxlint, oxfmt,tsgofor the ui-e2e lane.padding-inline, so withdir="rtl"the fill, avatar and title sit at 0 / 12 / 40px from the panel's right edge, matching LTR and main's mirrored Users layout.More states: Users, agent roster, 820px, RTL, full frame
After, full frame (native · dark · 1400×900):
Design feedback and direction: @vincentkoc.
Work sessions
Linked for team reference; these sessions aren't public.
Worked on by