feat: enable drag-and-drop for committed file entries (#566)

This commit is contained in:
Jinjing
2026-04-12 21:07:27 -07:00
committed by GitHub
parent 2926413ba2
commit e130feedaa
@@ -1226,6 +1226,12 @@ function BranchEntryRow({
>
<div
className="group flex cursor-pointer items-center gap-1 pl-5 pr-3 py-1 transition-colors hover:bg-accent/40"
draggable
onDragStart={(e) => {
const absolutePath = joinPath(worktreePath, entry.path)
e.dataTransfer.setData('text/x-orca-file-path', absolutePath)
e.dataTransfer.effectAllowed = 'copy'
}}
onClick={onOpen}
>
<StatusIcon className="size-3.5 shrink-0" style={{ color: STATUS_COLORS[entry.status] }} />