mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
feat: enable drag-and-drop for committed file entries (#566)
This commit is contained in:
@@ -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] }} />
|
||||
|
||||
Reference in New Issue
Block a user