Repository navigation
fix(sidebar): stop the resize handle from covering the workspace list scrollbar - #37948
Conversation
… scrollbar The sidebar's overflow-hidden clipped the outer half of the straddling resize handle, so the remaining half sat on top of the 10px list scrollbar and left only 3px of it clickable. Render the handle outside the clipped box and bias it toward the terminal side.
…ble on handle hover
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
The scrollbar on the left workspace list was almost impossible to grab, because the invisible "drag to resize the sidebar" strip was sitting right on top of it. This moves that strip so it sits on the border instead of over the scrollbar.
What Changed
overflow-hiddenclipped the outer half of the 12px resize handle, which was meant to straddle the border. The half that remained sat entirely on top of the 10px list scrollbar, leaving only 3px of the scrollbar clickable.Why
Restores the intended straddle from #7454, which has been silently clipped since it landed. Shrinking the handle instead would make resizing harder to grab. Hiding the scrollbar under the handle is what caused the bug.
Visual Proof
N/A for screenshots: nothing changes visually (the divider line stays on the same pixel). Only the hit areas change. Hit-test (
elementFromPoint) across the seam in a dev build, sidebar right edge at x=280 / 330:Testing
Sidebar.test.tsxpasses. No new test, because the hit geometry depends on real layout that jsdom can't measure.Review
Self-review (code-review, medium) addressed:
scrollbar-sleek-parentmoved to the new wrapper, so hovering the handle doesn't fade the list thumb.Accepted trade-off: with no drawer open, the handle reaches 10px into the main pane's left edge, where before the PR it reached none.
Agent skill upstream boundary
Notes
Renderer-only CSS/layout change. It behaves the same on all platforms, and SSH/remote/mobile are unaffected. Collapsed sidebar: the handle doesn't render, as before. The new wrapper is
flex-shrink-0and stretches to the same height as before.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)