diff --git a/src/renderer/src/components/sidebar/WorktreeCard.tsx b/src/renderer/src/components/sidebar/WorktreeCard.tsx index 9047f0060..ee11a3a28 100644 --- a/src/renderer/src/components/sidebar/WorktreeCard.tsx +++ b/src/renderer/src/components/sidebar/WorktreeCard.tsx @@ -485,7 +485,6 @@ const WorktreeCard = React.memo(function WorktreeCard({ ? 'border border-sidebar-ring/35 bg-sidebar-accent/70 ring-1 ring-sidebar-ring/30' : 'border border-transparent hover:bg-sidebar-accent/40', isActiveSurface && isMultiSelected && 'ring-1 ring-sidebar-ring/35', - !nativeDragEnabled && !isDeleting && '!cursor-grab', isDeleting && 'opacity-50 grayscale cursor-not-allowed', isSshDisconnected && !isDeleting && 'opacity-60' )} diff --git a/src/renderer/src/components/sidebar/worktree-sidebar-pointer-drag-dom.ts b/src/renderer/src/components/sidebar/worktree-sidebar-pointer-drag-dom.ts index 9d69718ba..740a32abf 100644 --- a/src/renderer/src/components/sidebar/worktree-sidebar-pointer-drag-dom.ts +++ b/src/renderer/src/components/sidebar/worktree-sidebar-pointer-drag-dom.ts @@ -25,7 +25,8 @@ export function isSidebarPointerDragBlocked(target: EventTarget | null, row: HTM } export function setSidebarPointerDragDocumentStyles(enabled: boolean): void { - document.body.style.cursor = enabled ? 'grabbing' : '' + // Why: sidebar cards are click-first; the drop line/preview show drag state + // without replacing the normal pointer cursor while crossing targets. document.body.style.userSelect = enabled ? 'none' : '' document.documentElement.toggleAttribute(POINTER_DRAGGING_ATTR, enabled) }