fix: show pointer cursor on worktree chevron (#2001)

This commit is contained in:
Jinjing
2026-05-15 17:42:33 -07:00
committed by GitHub
parent 7254211058
commit 97e6f48256
2 changed files with 11 additions and 2 deletions
@@ -751,10 +751,10 @@ const VirtualizedWorktreeViewport = React.memo(function VirtualizedWorktreeViewp
</div>
</div>
<div className="flex size-4 shrink-0 items-center justify-center text-muted-foreground/60 opacity-0 group-hover:opacity-100 transition-opacity">
<div className="flex size-4 shrink-0 cursor-pointer items-center justify-center text-muted-foreground/60 opacity-0 transition-opacity group-hover:opacity-100">
<ChevronDown
className={cn(
'size-3.5 transition-transform',
'size-3.5 cursor-pointer transition-transform [&_path]:cursor-pointer',
collapsedGroups.has(row.key) && '-rotate-90'
)}
/>
@@ -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')
})
})