Skip to content

fix(ui): balance side panel tab pill padding - #125368

Merged
Takhoffman merged 4 commits into
mainfrom
openclaw/balance-pill-padding-and-open-pr
Aug 17, 2026
Merged

Takhoffman merged 4 commits into
mainfrom
openclaw/balance-pill-padding-and-open-pr

Conversation

@clawsweeper

@clawsweeper clawsweeper commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

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

Side chat tab before: the X is crowded against the right edge

After

Side chat tab after: the leading bot and trailing X have matching visual insets

  • Pre-fix browser measurement: 8.5px leading glyph inset, 2.5px trailing glyph inset (regression assertion failed as expected).
  • Post-fix browser measurement: 8.5px leading glyph inset, 8.5px trailing glyph inset.
  • 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.
  • Current-main focused rerun including the previously failing cloud-workers-settings.e2e.test.ts — 6 passed.
  • Focused oxlint, stylelint, formatting, and git diff --check passed.
  • Autoreview: clean, no accepted/actionable findings.
  • Exact-head CI on cc7b579e7ea: 68 successful, 0 failing, 0 pending; required openclaw/ci-gate passed.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 3:49 PM ET / 19:49 UTC.

ClawSweeper review

What this changes

The PR balances Side chat tab-and-close-button pill spacing with logical CSS padding and radii, adding LTR/RTL browser geometry assertions.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No 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
Reviewed head: 8e5b4d076d768186f134c19867d8f0141f2f2cb2

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused implementation, direct visual proof, and browser geometry checks support a strong review rating.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR body provides before/after screenshots and browser measurements showing the corrected visual result.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR body provides before/after screenshots and browser measurements showing the corrected visual result.
Evidence reviewed 5 items Current-main defect surface: Current main retains physical padding, physical left-side tab radii, a 16px close control, and physical right-side close radii.
Renderer boundary: The shared renderer emits each tab directly before its close button, making Side chat CSS the correct owner for their joined visual shape.
Direction-aware sibling behavior: The shared tab strip already checks computed RTL direction for drag placement, supporting logical rather than physical layout properties.
Findings None None.
Security None None.

How this fits together

Side 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]
Loading

Before merge

  • Resolve merge risk (P1) - Production CSS is net +10 lines; the shared logical-radius rule is the smallest clear replacement for duplicated physical-radius rules across both directions.
  • Complete next step (P2) - The protected maintainer label leaves this otherwise clean PR in normal human merge handling; it is not a repair-lane candidate.
Agent review details

Security

None.

PR surface

Source +10, Tests +56. Total +66 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 17 7 +10
Tests 1 56 0 +56
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 73 7 +66

Review metrics

Metric Value Why it matters
Production versus test LOC production +10, tests +56 The CSS growth supports direction-safe geometry, while the test addition measures the user-visible result.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the logical padding-and-radii repair after exact-head checks complete, retaining the browser geometry regression boundary.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a focused web-UI visual polish repair without a blocked workflow or security impact.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides before/after screenshots and browser measurements showing the corrected visual result.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body provides before/after screenshots and browser measurements showing the corrected visual result.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body provides before/after screenshots and browser measurements showing the corrected visual result.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P3: This is a focused web-UI visual polish repair without a blocked workflow or security impact.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR body provides before/after screenshots and browser measurements showing the corrected visual result.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides before/after screenshots and browser measurements showing the corrected visual result.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body provides before/after screenshots and browser measurements showing the corrected visual result.

Evidence

What I checked:

Likely related people:

  • steipete: Commit 91d3f53 introduced the current Side chat CSS, tab-strip renderer, and initial browser contract. (role: recent feature author; confidence: high; commits: 91d3f533f173; files: ui/src/styles/chat/sidebar.css, ui/src/components/panel-tab-strip.ts, ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-17T18:50:26.481Z sha b506ac30cfbcceb9db6859898bb083561edcc86c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-17T19:03:31.496Z sha fd1c5575de0b8397882ecf6065a1ff13d54ec08a :: needs maintainer review before merge. :: none
  • reviewed 2026-08-17T19:15:31.900Z sha cc7b579 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-17T19:23:00.025Z sha cc7b579 :: needs changes before merge. :: [P2] Preserve the leading inset in RTL
  • reviewed 2026-08-17T19:36:11.107Z sha 3aa2263 :: needs changes before merge. :: [P2] Make the joined pill corners logical in RTL

@clawsweeper clawsweeper changed the title fix(ui): balance panel tab pill padding fix(ui): balance side panel tab pill padding Aug 17, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 17, 2026
@clawsweeper
clawsweeper force-pushed the openclaw/balance-pill-padding-and-open-pr branch from fd1c557 to cc7b579 Compare August 17, 2026 19:08
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 17, 2026
@Takhoffman Takhoffman self-assigned this Aug 17, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 17, 2026
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.
@Takhoffman

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Follow-up on d55d4132d81bb317d75af01f3684ea161cd8bedc: joined pill corners now use logical inline-start/end radii, and the browser contract asserts outer vs join radii in both LTR and RTL.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@Takhoffman

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Head is now 8e5b4d076d768186f134c19867d8f0141f2f2cb2 (lint-only follow-up on the logical pill-corner repair).

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 17, 2026
@Takhoffman
Takhoffman merged commit 29fc91f into main Aug 17, 2026
104 checks passed
@Takhoffman
Takhoffman deleted the openclaw/balance-pill-padding-and-open-pr branch August 17, 2026 19:51
@Takhoffman

Copy link
Copy Markdown
Contributor

Merged via squash.

steipete added a commit that referenced this pull request Aug 18, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
Fixes crowded side-panel tab close padding and keeps the joined pill balanced in LTR and RTL.

Co-authored-by: Tak Hoffman <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants