Repository navigation
fix(ui): Claw card names break one word per line on narrow cards - #179787
Conversation
Co-authored-by: Patrick-Erichsen <[email protected]>
Worked on by: - @Patrick-Erichsen Co-authored-by: Patrick-Erichsen <[email protected]> OpenClaw-Publication: 9011e0f1-8334-44e7-b0e8-cde15fa7ba6d
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis 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.”
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +29, Tests +9. Total +38 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 2:45 PM ET / 18:45 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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]>
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
/clawsbreak 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: anywhereis replaced with word-boundary wrapping plus a two-line clamp.Evidence
Same mocked catalog at 1280px, dark theme (four-column grid, ~224px cards):
Before
After
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 currentmainCSS: the name is 95px narrower than its row.stylelint,oxfmt --check, andgit diff --checkare clean on the changed files.Requested by @Patrick-Erichsen.
Work sessions
Worked on by