From 97e6f48256250e47f9387379a7d4ef16d4eaf003 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Fri, 15 May 2026 17:42:33 -0700 Subject: [PATCH] fix: show pointer cursor on worktree chevron (#2001) --- src/renderer/src/components/sidebar/WorktreeList.tsx | 4 ++-- .../src/components/sidebar/worktree-list-groups.test.ts | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/sidebar/WorktreeList.tsx b/src/renderer/src/components/sidebar/WorktreeList.tsx index c9afa1915..503c16edc 100644 --- a/src/renderer/src/components/sidebar/WorktreeList.tsx +++ b/src/renderer/src/components/sidebar/WorktreeList.tsx @@ -751,10 +751,10 @@ const VirtualizedWorktreeViewport = React.memo(function VirtualizedWorktreeViewp -
+
diff --git a/src/renderer/src/components/sidebar/worktree-list-groups.test.ts b/src/renderer/src/components/sidebar/worktree-list-groups.test.ts index 861e874ab..f7cea6194 100644 --- a/src/renderer/src/components/sidebar/worktree-list-groups.test.ts +++ b/src/renderer/src/components/sidebar/worktree-list-groups.test.ts @@ -557,4 +557,13 @@ describe('WorktreeList header styles', () => { expect(source).not.toContain('leading-none capitalize') }) + + it('shows a pointer cursor over the disclosure chevron path', () => { + const source = readFileSync( + fileURLToPath(new URL('./WorktreeList.tsx', import.meta.url)), + 'utf8' + ) + + expect(source).toContain('[&_path]:cursor-pointer') + }) })