Skip to content

fix(sidebar): stop the resize handle from covering the workspace list scrollbar - #37948

Merged
OrcaWin merged 2 commits into
mainfrom
OrcaWin/workspace-scrollbar-hit-detection
Nov 3, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
OrcaWin/workspace-scrollbar-hit-detection

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​85 $\color{#cf222e}{\Huge{\mathbf{−}}}$​75 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10

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

  • The sidebar's overflow-hidden clipped 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.
  • The handle now renders in a wrapper outside the clipped sidebar, so it isn't clipped.
  • It is biased toward the terminal side: 2px over the sidebar, 10px over the pane. The hover/active divider line still lands on the border pixel.

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:

Scrollbar clickable Resize handle hit area
Before x 270–272 (3px) x 273–279 (7px, outer half clipped)
After x 320–326 (7px) x 327–338 (12px)

Testing

  • I manually tested these changes locally (Linux, headless dev build over CDP): measured hit areas, dragged the handle (sidebar resized 280→330px), and dragged the scrollbar thumb 6px from the edge (list scrolled).
  • Automated tests: Sidebar.test.tsx passes. No new test, because the hit geometry depends on real layout that jsdom can't measure.

Review

Self-review (code-review, medium) addressed:

  • While the workspace board or agent dashboard drawer covers the border, the handle uses the old inside placement so it keeps ~7px of grab room. Measured: handle x 323–335 with the drawer open.
  • scrollbar-sleek-parent moved 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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-0 and stretches to the same height as before.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

… 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.
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The sidebar resize handle moves outside the clipped sidebar element. Its default position shifts outward. When the workspace board or enabled agent dashboard drawer is open, the handle uses an inner-overlap class. A new outer wrapper owns the scrollbar-parent styling. The clipped sidebar element retains the sidebar contents and drop-affordance rendering.

Merge Risk: Minimal · up to 7f2d9

The resize handle is repositioned to improve scrollbar access. No merge-blocking issue was identified.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description follows the repository template closely. It includes ELI5, What Changed, Why, Visual Proof, Testing, Review, Agent skill upstream boundary, Notes, and Checklist sections. The Risk sect… Add a Risk section that names the riskiest part of the change, who would be affected, what users would see if it failed, and how to back it out. Set the Level field to Low, Medium, or High. Replace 'Fixes #' with a real issue number, or con…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title names the actual change: the sidebar resize handle no longer covers the workspace list scrollbar. The raw summary and objectives both confirm the handle was moved outside the clipped sidebar…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the actual change: the sidebar resize handle no longer covers the workspace list scrollbar. The raw summary and objectives both confirm the handle was moved outside the clipped sidebar container. The title is specific and accurate, and it follows the conventional fix(scope) style. It is slightly long at 79 characters, but it is still a single clear sentence.

Full details: Description check

Explanation

The description follows the repository template closely. It includes ELI5, What Changed, Why, Visual Proof, Testing, Review, Agent skill upstream boundary, Notes, and Checklist sections. The Risk section is missing, and the Risk section is a required part of the template. The Linked Issue section reads 'Fixes #' with no issue number, and the template says an issue should always be linked for outside contributors. The AI Disclosure section is also absent. The Level field in Risk is missing. The Visual Proof section uses N/A with a reason, which the template allows for non-visual changes, but the change is a UI layout change, so the template expects a before and after. The author gave a hit-test table as a substitute, which is not a before and after view the reviewer can switch between. Most sections are filled in with substantive content, so the description is mostly complete.

Resolution

Add a Risk section that names the riskiest part of the change, who would be affected, what users would see if it failed, and how to back it out. Set the Level field to Low, Medium, or High. Replace 'Fixes #' with a real issue number, or confirm the maintainer exception applies. Add a Linked Issue reference if the PR is from an outside contributor. Add before and after screenshots or a video for the UI change, since the template asks for a switchable before and after. Add an AI Disclosure section, or leave it blank only if the author is a StablyAI team member.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 65a29ad2-aa21-4d08-83c7-98d444794902
Commits

Reviewing files that changed from the base of the PR and between 0883af2 and 7f2d924.

Files selected for processing: 1
  • src/renderer/src/components/sidebar/index.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant