Repository navigation
improve(ui): align settings sidebar and row controls on one rhythm - #196129
Conversation
Settings sidebar header stack (back row, agent picker, search, nav rows) now shares one 32px control height, the field radius and a 22px content edge; the Agents page toolbar and row controls (segmented, emoji picker) share the 32px settings control height and the field radius family. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 7e683927-a223-456e-9d72-1ccafa4e9148
|
🦞👀 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. |
The shared .agent-select__trigger already takes --settings-control-height, which is 38px under coarse pointers, so the sidebar override and its pointer: coarse block only repeated it. Keeps total CSS below the base. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 5055bca2-3cac-418f-88d4-3f725b11d85d
|
Codex review: needs maintainer review before merge. What this changesThis PR aligns Settings sidebar controls, Agents toolbar buttons, segmented controls, and the identity emoji picker using existing geometry tokens. Example: Open Settings on a desktop with a fine pointer.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed visual cleanup is useful, the earlier phone-menu finding is fixed, and no new actionable defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI styles combine shared control tokens with Settings and Agents presentation rules to turn existing component markup into responsive controls. flowchart TD
A[Shared geometry tokens] --> B[Shared control styles]
A --> C[Settings sidebar styles]
A --> D[Agents page styles]
E[Existing component markup] --> F[Browser layout]
B --> F
C --> F
D --> F
Technical reviewBest possible solution: Retain the focused geometry changes and the phone override removal, then land through the existing exact-head checks. Do we have a high-confidence way to reproduce the issue? The base styles and inspected before screenshots establish the inconsistent geometry; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The change uses the existing height and radius owners, removes superseded overrides, and adds browser checks for distinct rendered failures without introducing another production abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c74d7a70ae12. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +183. Total +188 across 7 files. Added test files: 1. 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, 12:50 PM ET / 17:50 UTC (Revision 2). |
With the desktop trigger rule reading --settings-control-height, the phone-width 44px literal in agents.css became the winning rule once the :root override left settings-controls.css. Delete it so the token owns the size at every width, and cover the 390px cascade in the rhythm test. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 2cc61766-8979-4955-98f1-7eed2eeeeb36
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Shares one fixture document and geometry reader across the three cases, and records the remaining 152-line growth in a test-lines allocation. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: b4057034-cadb-43e5-b5fc-47d4bcd6d7bb
The module-level HTML string was named document, so the page.evaluate reader typed the browser global as a string. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 72d73232-f3a7-4375-b472-f1708e36cbe5
…ttings # Conflicts: # test/vitest/vitest.ui-paths.mjs
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 135e61bf-9634-4959-abcc-c3ab6b34fedc
|
Merged via squash.
|
…penclaw#196129) * improve(ui): align settings sidebar and row controls on one rhythm Settings sidebar header stack (back row, agent picker, search, nav rows) now shares one 32px control height, the field radius and a 22px content edge; the Agents page toolbar and row controls (segmented, emoji picker) share the 32px settings control height and the field radius family. Co-authored-by: vincentkoc <[email protected]> * improve(ui): align settings sidebar and row controls on one rhythm Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 7e683927-a223-456e-9d72-1ccafa4e9148 * improve(ui): drop redundant settings agent trigger height overrides The shared .agent-select__trigger already takes --settings-control-height, which is 38px under coarse pointers, so the sidebar override and its pointer: coarse block only repeated it. Keeps total CSS below the base. Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ui-rhythm-settings Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 5055bca2-3cac-418f-88d4-3f725b11d85d * fix(ui): keep the Agents phone menu on the shared 38px control height With the desktop trigger rule reading --settings-control-height, the phone-width 44px literal in agents.css became the winning rule once the :root override left settings-controls.css. Delete it so the token owns the size at every width, and cover the 390px cascade in the rhythm test. Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ui-rhythm-settings Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 2cc61766-8979-4955-98f1-7eed2eeeeb36 * test(ui): tighten the settings rhythm suite and allocate its test lines Shares one fixture document and geometry reader across the three cases, and records the remaining 152-line growth in a test-lines allocation. Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ui-rhythm-settings Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: b4057034-cadb-43e5-b5fc-47d4bcd6d7bb * test(ui): stop shadowing document in the settings rhythm fixture The module-level HTML string was named document, so the page.evaluate reader typed the browser global as a string. Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ui-rhythm-settings Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 72d73232-f3a7-4375-b472-f1708e36cbe5 * Publish openclaw/ui-rhythm-settings Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 135e61bf-9634-4959-abcc-c3ab6b34fedc --------- Co-authored-by: vincentkoc <[email protected]>










What Problem This Solves
The Settings takeover mixed control heights, corner radii and left insets: the sidebar header stack stacked a 32px back row, a 40px agent picker, a 34px search field and 32px nav rows, with glyphs landing on 20/21/22px edges and radii split between 10px and 12.5px; the Agents toolbar put a 32px icon button beside 32.6px and 33px buttons with two radii; segmented controls and the emoji trigger in the identity row used radii that did not belong to the field family they sit in.
User Impact
User impact: Settings controls now read as one system. The sidebar's back row, title, agent picker, search field, section labels and nav rows share a 32px height, one radius and a single 22px content edge; the Agents header actions are one 32px row with one radius; segmented controls and the emoji picker match the fields beside them. No behavior changes.
Why This Change Was Made
Vincent's rhythm feedback asked for consistent vertical/horizontal alignment and one control shape per surface. The change only moves existing geometry onto the owners that already define it:
--settings-control-height(32px) for every control in the sidebar header stack and the Agents toolbar (the toolbar joins the existing "one control height inside settings clusters" rule), and--field-radius(10px, 12.5px on corner-shape engines, like.btn) for the sidebar back row, search field, segmented tracks and the Agents toolbar's icon button via its documented--icon-button-radiuscontext token. Nested controls take concentric radii (field radius minus their inset): segmented items (3px) and the emoji trigger (3px, now 26px inside the 32px field instead of overhanging it). Skeletons were updated to the same heights so loading never shifts.Deliberately unchanged, with reasons:
Evidence
Measured on the mocked Control UI (
pnpm dev:ui:mock), native-macOS chrome simulated byinstallNativeWebChrome, 1400×900, Chromium:Same results at 820px and in web (non-native) mode; the stack keeps 38px touch heights under
pointer: coarse.Tests:
ui/src/styles/settings-rhythm.browser.test.ts(real CSS in Chromium): one height/radius/inset through the sidebar header stack, one height/radius in the Agents toolbar, concentric emoji trigger, and the Agents menu trigger at 390px. Red on the base ([32, 40, 34, 32],[32, 32.59, 33],32 ≠ 26, phone menu[44, 44] ≠ [38, 38]on the first reviewed head), green with the fix.corner-shape.browser.test.ts:.settings-segmentedmoves from the unscaled list to the--field-radiusscale (10px → 12.5px with corner-shape), still circular.form-controls.browser,sidebar-footer-layout.browser,settings-sidebar*.test,settings-ui.browser,agent-emoji-picker.browser,solid/hub-tabs.browser, e2eagent-select-layout,mobile-page-actions-header,native-desktop-titlebar;pnpm lint:ui:styles,pnpm tsgo:ui, oxfmt.scripts/check-control-ui-performance-base.mtsagainst the CI base): total CSS raw −29 B, gzip +29 B vs base, inside the 64 B variance the already-over-ceiling base allows; the first head's +167 B came from an agent-trigger height override that merely repeated the shared token and was removed.:root38px override exposed a later 44px literal inagents.css) is fixed by deleting that literal so the token owns the size at every width; covered by the 390px test above andmobile-page-actions-headere2e.Screenshots (synthetic mock data; before = base, after = this branch; magenta line marks the traffic-light centerline y=26). Full set in the attachment comment.
Sidebar header stack, 2× zoom, native dark:
Agents toolbar, 2× zoom:
Emoji trigger inside the identity field, 3× zoom:
Full page, native dark, /settings/agents (before / after)
Thanks to @vincentkoc for the design direction.
Work sessions
Linked for team reference; these sessions aren't public.
Worked on by