Repository navigation
fix(ui): balance side panel tab pill padding - #125368
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 3:49 PM ET / 19:49 UTC. ClawSweeper reviewWhat this changesThe PR balances Side chat tab-and-close-button pill spacing with logical CSS padding and radii, adding LTR/RTL browser geometry assertions. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessNo blocking correctness finding remains. Current main still has the physical LTR-oriented layout, while this PR applies the direction-safe repair; it remains open for protected maintainer handling and exact-head CI completion. Priority: P3 Review scores
Verification
How this fits togetherSide chat renders each tab immediately beside its close button. Sidebar CSS joins that pair into one pill, and a browser contract measures its visible glyph insets and corners. flowchart LR
A[Side chat column] --> B[Tab strip renderer]
B --> C[Adjacent tab and close button]
C --> D[Logical CSS geometry]
D --> E[LTR or RTL joined pill]
E --> F[Browser geometry contract]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +10, Tests +56. Total +66 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the logical padding-and-radii repair after exact-head checks complete, retaining the browser geometry regression boundary. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: current main has the physical geometry that produces unequal edge insets and incorrect RTL pill corners; this read-only review did not execute the browser test. Is this the best way to solve the issue? Yes. Styling the Side chat boundary is narrower and safer than changing the shared renderer used by terminal and browser strips. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9f5776e071d1. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
fd1c557 to
cc7b579
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Physical left/right radii split the joined tab pill under RTL. Round the inline-start tab and inline-end close edges, and assert the joined shape in both directions.
|
@clawsweeper re-review Follow-up on |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Head is now |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Restore the block-axis padding reset lost in #125368 so Web Awesome tab labels remain vertically legible while retaining logical inline spacing. Add LTR and RTL browser geometry coverage for the visible label boundary.
Fixes crowded side-panel tab close padding and keeps the joined pill balanced in LTR and RTL. Co-authored-by: Tak Hoffman <[email protected]>
Restore the block-axis padding reset lost in openclaw#125368 so Web Awesome tab labels remain vertically legible while retaining logical inline spacing. Add LTR and RTL browser geometry coverage for the visible label boundary.
What Problem This Solves
Fixes an issue where users viewing the unified chat side panel would see the tab close action crowded against the pill's right edge.
Why This Change Was Made
The side-panel tab and its sibling close action now form one balanced surface: the base keeps its leading inset, while the close action supplies an equal trailing inset without an extra gap between the label and X.
The existing Side chat browser contract now measures the actual SVG glyph edges, so nested action-box padding cannot hide a visual regression.
User Impact
Unified side-panel tabs have visually balanced pill padding in Safari and other browsers while retaining the same controls and header layout.
Evidence
Before
After
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts— 2 passed.cloud-workers-settings.e2e.test.ts— 6 passed.git diff --checkpassed.cc7b579e7ea: 68 successful, 0 failing, 0 pending; requiredopenclaw/ci-gatepassed.