Skip to content

fix(ui): fit chat table cards to their columns - #122297

Merged
vyctorbrzezowski merged 2 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/control-ui-table-fit-content
Aug 12, 2026
Merged

vyctorbrzezowski merged 2 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/control-ui-table-fit-content

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

Closes #122293

Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Fixes an issue where short Markdown tables in Control UI chat transcripts would render as full-width cards with an empty strip after the final column.

Why This Change Was Made

In this PR, table cards use content width while retaining the existing max-width: 100% cap and horizontal overflow behavior for narrow message lanes. The adjacent Markdown rhythm change in #122289 is a separate concern and does not alter table sizing.

User Impact

Short table cards now end at the last column, while tables that need the full message width remain bounded by their chat lane in both light and dark themes.

Evidence

Theme Before In this PR
Dark Short chat table before in dark mode Short chat table after in dark mode
Light Short chat table before in light mode Short chat table after in light mode

Browser geometry in a 680px message lane:

  • short card width: 680px before → 194.265625px in this PR
  • blank strip after the last cell: 486.734375px before → 1px border in this PR
  • the same table remains capped to 160px in a 160px lane

Focused validation:

node scripts/run-vitest.mjs ui/src/pages/chat/chat-responsive.browser.test.ts -t "fits short table cards"
Test Files  1 passed (1)
Tests       2 passed | 79 skipped (81)

Formatting check passed for both changed files. Production delta is net-zero (1+ / 1-); test coverage adds 41 lines.

@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 11, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 11, 2026 21:51
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 8:53 PM ET / August 12, 2026, 00:53 UTC.

ClawSweeper review

What this changes

The PR makes Control UI Markdown table cards fit their columns while retaining the existing message-lane cap and horizontal overflow behavior.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for ordinary maintainer review. The current main branch still forces chat Markdown tables to full width, while this PR changes that owner rule and supplies direct browser geometry plus before/after visual proof; no patch defect was found.

Priority: P3
Reviewed head: b40e63a355aec07ebd2991ef646f7eae7e6d9e09

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct visual and browser-geometry proof support a focused, net-neutral CSS repair with no actionable correctness finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR body provides before/after screenshots in both themes and after-fix browser geometry for the changed table-card behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR body provides before/after screenshots in both themes and after-fix browser geometry for the changed table-card behavior.
Evidence reviewed 6 items Current-main behavior: Current main retains width: 100% on the shared table-card selector, which directly explains the reported empty trailing area in a wider lane.
Owner-boundary repair: The PR changes only the shared table width declaration to fit-content, retaining max-width: 100% and overflow-x: auto in the same owner rule.
Rendered-path evidence: Assistant Markdown is sanitized into a .chat-text container, so the changed selector is on the rendering path rather than an unrelated style surface.
Findings None None.
Security None None.

How this fits together

Chat and Cron transcript Markdown is rendered into .chat-text, whose shared stylesheet controls table-card width and overflow. The browser layout test loads that stylesheet and measures rendered table geometry in wide and constrained lanes.

flowchart LR
  A[Markdown message] --> B[Chat Markdown renderer]
  B --> C[Chat text container]
  C --> D[Shared table-card stylesheet]
  D --> E[Width and overflow behavior]
  E --> F[Rendered chat or Cron table]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head required checks were still in progress in the supplied PR state; merge only after they complete green.
  • Complete next step (P2) - No repair lane is needed: this maintainer-authored, protected PR has no actionable finding and awaits normal exact-head CI and maintainer merge review.
Agent review details

Security

None.

PR surface

Source 0, Tests +41. Total +41 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 41 0 +41
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 42 1 +41

Review metrics

Metric Value Why it matters
Production vs test LOC production +1/-1 (net 0); tests +41/-0 The behavioral change is a net-neutral owner-rule replacement and the added lines are focused browser geometry coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #122293
Summary: This PR is the candidate fix for the linked Control UI table-card width report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the net-neutral stylesheet correction after exact-head CI is green, keeping table sizing, lane capping, and scrolling together in the shared table-card rule.
  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 net-neutral stylesheet correction after exact-head CI is green, keeping table sizing, lane capping, and scrolling together in the shared table-card rule.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main’s full-width declaration provides a direct source reproduction path, and the PR supplies browser geometry for both the fixed wide-lane case and constrained-lane preservation.

Is this the best way to solve the issue?

Yes. Changing the shared table-card width owner while retaining its existing cap and overflow behavior is narrower and more maintainable than altering renderers or adding per-message layout logic.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ff73a14f5ae7.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides before/after screenshots in both themes and after-fix browser geometry for the changed table-card behavior.

Label justifications:

  • P3: This is a bounded Control UI presentation defect without data, delivery, security, or availability impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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 in both themes and after-fix browser geometry for the changed table-card behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides before/after screenshots in both themes and after-fix browser geometry for the changed table-card behavior.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body provides before/after screenshots in both themes and after-fix browser geometry for the changed table-card behavior.

Evidence

What I checked:

Likely related people:

  • vyctorbrzezowski: Authored the prior merged Markdown rhythm repair in the same stylesheet and the current focused fix. (role: recent Markdown-style contributor; confidence: high; commits: 944b81b2dc6f, b40e63a355ae; files: ui/src/styles/chat/text.css, ui/src/pages/chat/chat-responsive.browser.test.ts)
  • steipete: History records recent Control UI Markdown-table polish and the earlier chat-style consolidation affecting this shared stylesheet. (role: recent Markdown-table contributor; confidence: medium; commits: 22e6f5b5e0dc, 33022da15508; files: ui/src/styles/chat/text.css)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the exact-head required checks to finish green before merging.

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 (1 earlier review cycle)
  • reviewed 2026-08-11T21:58:17.520Z sha 64e7ff0fa7ac9a9be363eb6ac78e6176ac7a9dca :: needs maintainer review before merge. :: none

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/control-ui-table-fit-content branch from 64e7ff0 to b40e63a Compare August 12, 2026 00:47
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Aug 12, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Landing review complete.

Proceeding through the repository-native landing flow.

@vyctorbrzezowski
vyctorbrzezowski merged commit 9dfc26b into openclaw:main Aug 12, 2026
79 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/control-ui-table-fit-content branch August 12, 2026 01:10
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 12, 2026
* test(ui): cover chat table card width

* fix(ui): fit chat table cards to columns
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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

[Bug]: Chat table cards leave empty space after last column

1 participant