Repository navigation
fix(ui): side panel tab labels render without vertical clipping - #125511
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 10:21 PM ET / August 18, 2026, 02:21 UTC. ClawSweeper reviewWhat this changesThis PR resets block-axis padding on side-panel tab bases and adds LTR/RTL browser geometry assertions to prevent vertically clipped tab labels. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readinessKeep open for normal maintainer handling: the narrow Control UI repair has no blocking correctness finding, and the Priority: P2 Review scores
Verification
How this fits togetherThe Control UI creates side-panel tabs from panel metadata, renders them through the shared tab-strip component, and applies sidebar-specific CSS to their Web Awesome tab base. The browser contract opens Side chat and verifies the label remains inside its visible clipper. flowchart LR
A[Side-panel metadata] --> B[Shared tab strip]
B --> C[Web Awesome tab base]
C --> D[Sidebar CSS]
D --> E[Label clipper]
E --> F[Visible tab label]
F --> G[Browser geometry contract]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +21. Total +22 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the one-line owner-side padding reset with its LTR/RTL containment contract once exact-head checks are green; a net-neutral refactor is not available because the missing reset is the required behavior. Do we have a high-confidence way to reproduce the issue? Unclear for an independently run reproduction: current main lacks the reset and the focused browser contract directly measures the claimed containment invariant, but this read-only review did not execute Chromium. Is this the best way to solve the issue? Yes. The repair is placed on the sidebar-specific tab-base owner, while the contract verifies the actual label clipper rather than coupling to component implementation details. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 71eab1118d4d. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready verification for head The regression is reproduced at the visible owner boundary: without the block-axis reset, the browser contract fails with a ClawSweeper rank-up moves:
Proof completed:
Proof gap: the real-profile Chrome extension relay was unavailable, so the visual proof uses the repository's deterministic real-Chromium Control UI E2E harness with a mocked Gateway. No authenticated account data was required. |
|
Merged via squash.
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(ui): side panel tab labels render without vertical clipping This is item 3/3 in the current shard. Shard 0/38. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
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 opening Terminal or another tool in the chat side panel could see the outer tab label vertically clipped into a few illegible pixels. The inner shell tab remained readable, which made the broken top-level header especially distracting.
Why This Change Was Made
The side-panel pill keeps the RTL-aware inline spacing from #125368, but once again resets Web Awesome's inherited block padding at the tab-base owner. That restores the full label line box without changing the 28 px close target, tab dimensions, tooltip behavior, or shared Terminal/Browser tab strip.
The existing browser geometry contract now verifies that the rendered label remains fully inside its overflow clipper in both LTR and RTL. The regression test fails on the pre-fix CSS with a
-7.296875pxblock-start inset.Regression provenance: #125368 changed the previous all-axis padding reset to inline-only padding. The exact follow-up was commit
3aa2263bb75f9097b323f8c0127f3acb08cc7dc1; the PR was merged as29fc91fe99d8832e5031a272f4afb74b05a1da70.AI-assisted; I reviewed the implementation, dependency CSS contract, history, tests, and screenshots directly.
User Impact
Side-panel tab labels are fully legible and vertically centered again in right- and bottom-docked layouts, while the newer balanced close-button spacing and RTL pill geometry remain intact.
Evidence
The deterministic Control UI E2E harness exercised the real Chromium-rendered surface with a mocked Gateway. The real-profile Chrome extension relay was unavailable, so no authenticated live account data was used or captured.
ltr label block-start containmentwith-7.296875.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— 3 passed.ui/src/e2e/chat-rail-columns.e2e.test.ts— 1 passed, 4 skipped.node scripts/check-changed.mjs -- ui/src/styles/chat/sidebar.css ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts— passed formatting, typecheck, lint, guards, and UI build.pnpm ui:build— passed; Control UI performance budgets remained green.Production LOC: +1/-0 | Tests: +23/-2