Skip to content

fix(ui): Claw card names break one word per line on narrow cards - #179787

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/claws-card-title-pr-2
Oct 22, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/claws-card-title-pr-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

octopool: pr_view served from shared cache (hit), refreshes in 1m44s; set OCTOPOOL_FRESH=1 for a live read

What Problem This Solves

Fixes: Claw names on /claws break one or two words per line, and even mid-word ("Internationa / lization"), when the catalog grid makes cards narrow, as it does on laptop-width screens with three or four columns.

User Impact

User impact: Claw names on narrow cards wrap on word boundaries across the full card width, capped at two lines with an ellipsis; long publisher handles truncate on one line instead of wrapping on hyphens. Wider cards (one- and two-column layouts) look the same as before.

Why This Change Was Made

The name shared a grid row with the artwork and the Add button, which left about 100px for it on a 220px card. A container query on the card now moves the name below the artwork/Add row when the card itself is under 280px wide, so the layout follows card width rather than viewport width. The old overflow-wrap: anywhere is replaced with word-boundary wrapping plus a two-line clamp.

Evidence

Same mocked catalog at 1280px, dark theme (four-column grid, ~224px cards):

Before

Before: Claw names on four-column cards wrap one or two words per line

After

After: Claw names span the full card width, up to two lines

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner --maxWorkers=1 ui/src/pages/agents-home/claws-catalog.e2e.test.ts: 7 passed, 16s wall. The new assertion (name spans the full title row on four-column cards) fails against the current main CSS: the name is 95px narrower than its row.
  • stylelint, oxfmt --check, and git diff --check are clean on the changed files.
  • Captured 390, 900, 1000, 1280, and 1440px: single- and two-column layouts are unchanged; three- and four-column cards use the stacked title row.

Requested by @Patrick-Erichsen.

Work sessions

Worked on by

roboclaw-bot and others added 2 commits October 21, 2026 18:23
Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <[email protected]>
OpenClaw-Publication: 9011e0f1-8334-44e7-b0e8-cde15fa7ba6d
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR gives narrow Claw cards a full-width name row, clamps names to two lines, and truncates publisher handles.

Example: A four-column Claws catalog at a 1280px viewport shows “Internationalization accessibility auditor.”

  • Before: The name splits mid-word across several cramped lines beside the artwork and Add button.
  • After: The name occupies two full-width lines below the artwork and Add button.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, visually proven repair with no identified defect; broad CI validation remains incomplete.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the production Claw card presentation in a browser with a mocked catalog at 1280px, showing readable full-width names and publisher truncation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Claw names become difficult to read when multi-column catalog layouts leave little space between artwork and Add.
Reason: The screenshots show a concrete readability improvement, the repair is focused, and this maintainer-authored PR already supplies direction approval.

Merge readiness

⛔ Needs changes before merge - 1 item remains

This PR fixes a visible layout defect that remains on main, with convincing before/after screenshots and no identified code defect.

Priority: P3
Reviewed head: 06d6e7cacc0e669b0d9600ec5f8021952b376134

Before merge

  • Complete next step - Inspect the failed checks-ui (1/3) log and determine whether it needs a branch fix or reflects an independently verified outside failure.

Findings

None.

Agent review details

How this fits together

The Control UI renders catalog entries as Claw cards; shared catalog grids determine card width, and the card stylesheet arranges artwork, names, publisher handles, and Add controls.

flowchart LR
  A[Catalog entries] --> B[Claws Explore]
  B --> C[Claw card]
  D[Catalog grid] --> C
  C --> E[Card container query]
  E --> F[Readable name and publisher]
Loading

Technical review

Best possible solution:

Keep the responsive repair in the existing card stylesheet and resolve the exact-head UI check before landing.

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

The original grid allocation and before screenshot establish the cramped-name failure; the PR reports a base-failing browser geometry assertion, but no code was executed during this review.

Is this the best way to solve the issue?

The container query fixes width allocation at its presentation owner, and the existing browser scenario gains a focused regression assertion without new machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c927604295ba.

Provenance checked

  • Claw card header layout and wrapping changes intended behavior with a stated reason (f469f6d: Provide readable Claw catalog entries with detail navigation and Add-to-chat handoff; later artwork and discovery refactors retained the three-column header.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +29, Tests +9. Total +38 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 30 1 +29
Tests 1 9 0 +9
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 39 1 +38

Labels

Label changes:

No label changes.

Label justifications:

  • P3: The change improves catalog readability without changing catalog access, installation, or agent behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 2:45 PM ET / 18:45 UTC.

@roboclaw-bot
roboclaw-bot merged commit 2b18fc8 into main Oct 22, 2026
102 of 105 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/claws-card-title-pr-2 branch October 22, 2026 00:45
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…nclaw#179787)

* fix(ui): keep Claw card names readable on narrow cards

Co-authored-by: Patrick-Erichsen <[email protected]>

* fix(ui): Claw card names break one word per line on narrow cards

Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <[email protected]>
OpenClaw-Publication: 9011e0f1-8334-44e7-b0e8-cde15fa7ba6d

---------

Co-authored-by: Patrick-Erichsen <[email protected]>
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 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant