Repository navigation
fix(ui): side panel resize handle ignores presses on its line - #197522
Conversation
The side panel divider paints its line at the trailing edge of the gutter, but its pointer target sat entirely before that line: the desktop side panel is stacked above the divider, so the half of the target meant for the panel side never received input. Center the target on the visible line and raise only the target above the panel. The line keeps its layer, so it stays hidden while the gutter animates in behind an already placed panel. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 77729273-4752-42ab-9b8f-43068ea22c6d
|
🦞👀 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 centers the side-panel resize target on its visible divider and raises the target above the panel. Example: Drag the right-docked panel divider starting 2px past the line.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it addresses a concrete resize defect still present on main, but its added CSS causes the performance gate to fail. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherControl UI layout CSS determines which element receives pointer input; the existing resizable-divider component converts that input into panel-size updates. flowchart LR
A[Pointer press] --> B[Divider hit area]
B --> C[Resizable divider]
C --> D[Panel resize callback]
D --> E[Panel layout]
Technical reviewBest possible solution: Keep the focused hit-area repair and regression case while reducing bundled CSS enough to satisfy the existing performance allowance. Do we have a high-confidence way to reproduce the issue? Current-main stacking and target geometry explain the failure, corroborated by the supplied browser measurements and reported base-failing regression; no target code was executed during review. Is this the best way to solve the issue? The patch repairs the owning CSS boundary without changing drag handlers or persisted sizing, and keeping the painted line below the panel preserves its animation contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3978ab104ee6. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +12, Tests +11. Total +23 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 November 11, 2026, 11:28 PM ET / November 12, 2026, 04:28 UTC. |
|
Merged as Validation and CI exceptions are documented in the PR body. Human coauthorship was verified in the final squash commit. |
…aw#197522) Center the side-panel resize target on its visible divider and preserve the line's animation layer. Four browser scenarios passed. The approved raw-CSS budget exception is documented in the PR. Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes: the chat side panel resize handle does not respond when you press on its visible line, or just past it on the panel side.
User Impact
User impact: the side panel (Side chat, Files, and the other panel tabs) can be resized by pressing the divider line itself or a few pixels on either side of it, the same way the sessions sidebar already works. The handle is also the same width along its whole length. The trade-off is that the first 5px of the panel's leading edge now belong to the handle; the first panel tab starts 6px in, so no control is covered.
Why This Change Was Made
The divider paints its line at the trailing edge of its gutter, but the pointer target sat entirely before that line: the desktop side panel is stacked above the divider, so the half of the target meant for the panel side never received input. The target is now centered on the visible line, and only the target is raised above the panel. The line keeps its previous layer, so it stays hidden while the gutter animates in behind an already placed panel.
Evidence
Maintainer validation: all four existing Control UI rail/column browser tests passed on the published source, including the pointer drag from two pixels past the divider. The before/after target overlays and original failing-base result were inspected. No new cross-browser or native-shell proof is claimed.
Measured in the Control UI against the mock Gateway (Chromium, 1600x900, light theme) by pressing and dragging at every pixel across the divider.
Right dock at 4x zoom. The pink tint is an overlay of the measured grab area and is not part of the UI; the resting appearance is unchanged.
Before:
After:
ui/src/e2e/chat-rail-columns.e2e.test.tsnow also drags from 2px past the line on the panel side. It fails on the base (expected 730 to be less than 710) and passes with the fix.pnpm tsgo:ui, pass.Gaps: Chromium only; Firefox, WebKit, and the native macOS shell were not exercised. No local review tool was run on this 27-line change.
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.
Maintainer integration
The divider hit-area fix passed all four focused Control UI browser scenarios, including dragging from the previously inactive panel side of the line. The existing before/after target measurements were inspected.
The only remaining CI failure is the total raw CSS growth budget (run 43153197594, job 130967572136). The maintainer explicitly authorized this budget exception; the approved hit area and its visual behavior are retained. Other applicable CI and security checks passed.