Repository navigation
fix(ui): dashboard widgets leave a gap below content and hover chrome blocks widget buttons - #114012
Conversation
…to a top-left pill
|
Codex review: needs maintainer review before merge. Reviewed July 26, 2026, 12:50 AM ET / 04:50 UTC. ClawSweeper reviewWhat this changesThe PR makes auto-sized dashboard widget cards hug their reported content height and replaces the desktop full-width hover bar with a delayed compact control pill that preserves widget-owned top-right actions. Merge readinessKeep this PR open for maintainer handling: its latest commit directly addresses the prior narrow-card action-corner finding, and the supplied Chromium plus live mock-harness evidence is specific to the changed dashboard behavior. No new concrete patch defect surfaced; the Priority: P2 Review scores
Verification
How this fits togetherDashboard HTML widgets report their content height from their iframe to the board view. The grid still uses quantized rows for placement, while each widget card can render at its exact content height and desktop hover controls are overlaid without covering widget actions. flowchart LR
A[HTML widget iframe] --> B[Content-height report]
B --> C[Board view state]
C --> D[Quantized grid cell]
C --> E[Exact card-height calculation]
F[Desktop hover or focus] --> G[Compact control pill]
D --> H[Rendered dashboard widget]
E --> H
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceSource +90, Tests +107. Total +197 across 7 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Preserve the current split between quantized grid placement and exact card rendering, and land the updated narrow-card pill behavior after maintainer review at the actual merge head; do not alter touch-bar or drag/resize semantics. Do we have a high-confidence way to reproduce the issue? Yes, from source and the submitted browser coverage: an auto-height HTML widget in the dashboard exercises the exact-height path, while a narrow long-titled widget exercises the desktop hover-pill reservation. This review did not execute the browser harness itself. Is this the best way to solve the issue? Yes, based on the patch and stated proof: preserving the quantized cell for drag/resize while sizing only the card to reported content is narrower than changing grid geometry, and the latest CSS specifically repairs the earlier narrow-card overlap concern. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5c7f7d198e7d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
… to absorb ENOTEMPTY race
…ction corner stays widget-owned
|
Merged via squash.
|
… blocks widget buttons (openclaw#114012) * fix(ui): hug auto widget cards to content and compact board chrome into a top-left pill * test(gateway): retry temp-dir cleanup in chat abort persistence suite to absorb ENOTEMPTY race * fix(ui): strip board pill to move and menu on narrow widgets so the action corner stays widget-owned
What Problem This Solves
Fixes two dashboard widget problems reported from live use of the session dashboard (chat Dashboard tab / board pages):
Why This Change Was Made
The grid cell stays quantized to rows (drag/resize math untouched), but the card now hugs its exact reported content height (
height: <content+chrome>px; align-self: start) so the ceil-to-row slack lands outside the card as ordinary background spacing. During move/resize gestures the card re-fills its cell so users manipulate the rect they actually commit; at the 20-row cap it fills the cell and clips as before; widgets that never report a height behave exactly as today.The hover chrome is now a compact interactive top-left pill (drag handle, title, kind chip, capabilities, menu) instead of a full-width strip. It hard-reserves a >=96px widget-owned top-right action region via
max-width: max(88px, calc(100% - 96px)), every flexible child shrinks inside the cap so nothing can carry pointer targets into the reserved corner, and a 350ms hover-intent delay keeps chrome from flashing in during quick clicks into content. Keyboard focus, open menus, and drags still reveal chrome immediately. Coarse-pointer layouts keep the existing in-flow 38px bar unchanged.True "pointer near top edge" proximity reveal is not possible over the cross-origin widget iframe (the host receives no pointer coordinates); forwarding proximity hints through the trusted widget bridge script is a possible follow-up.
User Impact
Evidence
ui/src/lib/board/grid.test.ts,board-view-sizing.test.ts,board-view.test.ts: 67/67 pass locally (includes newexactBoardWidgetHeightPxunit coverage and a DOM test that a size report pins the exact height and re-fills while dragging).board-view.browser.test.tsin real Chromium: 14/14 pass, including new assertions for pill geometry, the 324px content hug, and a narrow long-titled widget keeping a >=88px reserved top-right region with no child overflow.pnpm dev:ui:mock --fixture board): the size-reporting widget hugs at 170px inside its 192px cell; hover shows the top-left pill with the widget's own top-right area clear.