Skip to content

fix(web): sidebar edge uses the same resize cursor as side panels - #33083

Merged
juliusmarminge merged 3 commits into
pingdotgg:mainfrom
tenyoru:fix/sidebar-resize-cursor
Nov 15, 2026
Merged

juliusmarminge merged 3 commits into
pingdotgg:mainfrom
tenyoru:fix/sidebar-resize-cursor

Conversation

@tenyoru

@tenyoru tenyoru commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Problem

The left sidebar's edge and the right panel's edge both resize when you drag them, but they show different pointers. The right panel's edge shows ↔ (col-resize). The sidebar's edge shows ⇤ (w-resize), which suggests "collapse to the left" rather than "resize". Once the drag starts, the pointer switches to ↔ anyway, because useResizeDrag sets col-resize on the page for the drag.

Change

When the sidebar can be resized (it's open and resizable), its edge shows ↔ (col-resize), the same as the right panel's edge and the pointer during the drag. When the edge only opens or closes the sidebar (collapsed, or a sidebar that can't be resized), it keeps the arrows that point the way it will open or close.

Scope and approval

There's no prior issue or discussion. It's a small, focused consistency fix: one class on SidebarRail, using the cursor the app already shows for the same action.

Verification

Sidebar edge, before Sidebar edge, after Right panel edge (unchanged)
Before: hovering the sidebar's edge shows a left arrow to a bar After: hovering the sidebar's edge shows a double arrow The right panel's edge already shows the same double arrow

These are real pointer captures from the desktop dev build on Linux, taken with the X server's pointer drawn in (Notwaita cursor theme, 32 px). The left two shots are the same spot before and after the change, which hot-reloaded in between.

  • Open sidebar: its edge reports w-resize before and col-resize after.
  • Collapsed sidebar: its edge still reports e-resize. Reopened, it's col-resize again.
  • vp run check:changed passes.

Web renders the same sidebar component. The mobile app has its own navigation and isn't affected.

🤖 Generated with Claude Code (Claude Opus 5.5), run from T3 Code.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T21:41:37.219604Z a322bec PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 8, 2026
@macroscopeapp

ghost commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at a322bec

Macroscope's review found this PR approvable — The sidebar rail displays a column-resize cursor when resizing is available, while retaining directional cursors otherwise. This is a presentation-only change with no change to resizing or collapse behavior.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

ghost commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

SidebarRail uses a column-resize cursor when resizing is available. Otherwise, it retains the existing side- and collapsed-state-specific cursors. Touch behavior is unchanged.

Changes: Sidebar rail cursor

Layer / File(s) Summary
Resize-aware cursor selection
apps/web/src/components/ui/sidebar.tsx
SidebarRail selects its cursor classes based on canResize. Touch behavior remains unchanged.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 5468f

The sidebar edge now shows the same resize cursor as the side panels when it can be resized. The risk is very low and the change is cosmetic, with no behavioral or data impact.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the sidebar edge (SidebarRail) now uses the same col-resize cursor as the side panels. It matches the raw summary, which says the rail shows a column-resize cursor when the…
Description check Passed The description follows the template's sections: Problem, Change, Scope, and Verification. The Problem section explains the mismatched cursors and the expected behavior. The Change section explains th…
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 change: the sidebar edge (SidebarRail) now uses the same col-resize cursor as the side panels. It matches the raw summary, which says the rail shows a column-resize cursor when the sidebar is resizable. It uses the conventional commit form with a scope, and it is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the template's sections: Problem, Change, Scope, and Verification. The Problem section explains the mismatched cursors and the expected behavior. The Change section explains the conditional cursor. The Scope section says there is no prior issue and explains why none is needed for a small fix. The Verification section gives before/after screenshots, the cursor states checked, and the check command result. It also states what was not tested, which is mainly the mobile app and native Electron.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2033a0a and 5468fee.

Files selected for processing: 1

  • apps/web/src/components/ui/sidebar.tsx

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

@maria-rcks

ghost commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Written by claude-opus-5-5 on behalf of Maria

Takeover: merged main

the head conflicted with main after #33066 added touch-none to the same SidebarRail class lines. merged github/main (524a53183d) with a merge commit, no rebase. the resolution keeps touch-none unconditionally and keeps this pr's canResize ? "cursor-col-resize" : <directional cursors> choice. no other changes.

  • blacksmith: vp run check:changed passes (format, lint, knip, typecheck, sidebar.browser.test.tsx, react compiler).
  • real app via playwright and /usr/bin/google-chrome on the merged head: open rail computes cursor: col-resize, collapsed rail e-resize, reopened col-resize. touch-action: none holds in all three.
  • no review bot left an actionable finding.

Earlier verification (gpt-6.1-sol, head a322becdd2)

verified exact head a322becdd2930650ae78bea8f77356c6be799f21 as-is on a linux boat vm, using playwright 1.60.0 and /usr/bin/google-chrome against vp run dev. no code changes.

  • reproduced on github/main (fa2f4ff2a2), installed in a separate worktree: the open sidebar rail shows w-resize, switches to col-resize during drag, then returns to w-resize.
  • stopped main before starting the pr server. added a real git project through the app and completed codex gpt-6.1-sol turns through the composer on both servers. the same task-created conversation is shown below.
  • on the pr, hover, drag, and release all show col-resize. width changes from 256 to 356 px and survives reload. double-click resets it to 256 px.
  • collapse/reopen works. the collapsed offcanvas rail retains e-resize and pointer-events: none; reopening restores col-resize.
  • the right panel still shows col-resize and resizes. dark mode at 1280×800 also resizes and resets correctly; the matching light-mode captures are 1920×1080.
  • blacksmith: vp test run apps/web/src/components/ui/sidebar.browser.test.tsx passed both existing tests, covering focus handoff and collapse during drag. existing head ci reports 29 successful checks, zero pending or failing.

before on main: directional cursor on the sidebar rail

after on the pr: column resize cursor on the same rail and conversation

pr recording: sidebar drag, reset, collapse and reopen, and right panel resize

runtime transcript

Not verified

native electron shell, macos/windows cursor themes, ios/android, and remote/relay/tunnel connections were not exercised on this linux vm. the app uses the left resizable offcanvas sidebar; a right-side or non-resizable SidebarRail configuration has no user-reachable instance here and was inspected in code only. no performance claim is made.

…rsor

# Conflicts:
#	apps/web/src/components/ui/sidebar.tsx
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 15, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge

ghost commented Nov 15, 2026

Copy link
Copy Markdown
Member

Evidence

Verified in Chromium, 1600×1000, light theme, with identical synthetic replay data and fresh databases. Hover the expanded sidebar edge, drag 40px right, release, compare the right panel, then collapse and reopen with Ctrl+B. The labeled overlay reports live computed CSS cursors; it does not replace the app's cursor styling.

Base reproduces the mismatch: rail w-resize, drag body col-resize. Head uses col-resize throughout. Both retain collapsed e-resize and right-panel col-resize.

Evidence Before After
Commit 843893e58c 5468fee206
During drag Before: sidebar rail and drag body cursors differ After: sidebar rail and drag body both use col-resize
Complete observations Before: cursor observations through collapse and reopen After: consistent resize cursor with directional collapsed cursor preserved
Recording Before interaction After interaction

Scenario source. scenarios:prove exited 0: fails on base, passes on head.

Not shown:

  • Native operating-system pointer glyphs are omitted by headless browser captures; the evidence displays actual computed rail/body cursor values during real pointer interactions.
  • The collapsed offcanvas rail is outside the clickable area, so its directional cursor was verified by computed style rather than pointer hover.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 15, 2026
@juliusmarminge
juliusmarminge merged commit 86cdf80 into pingdotgg:main Nov 15, 2026
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants