Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/modules/source-control/SourceControlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
ArrowUp01Icon,
CheckmarkCircle01Icon,
Download01Icon,
File01Icon,
Folder01Icon,
FolderCloudIcon,
FolderGitTwoIcon,
Expand Down Expand Up @@ -1209,6 +1210,18 @@ const EntryRow = memo(function EntryRow({
</div>
</button>

{!isDeleted && onOpenFile && absolutePath ? (
<div className="flex shrink-0 items-center opacity-0 transition-opacity group-hover:opacity-100 data-[focused=true]:opacity-100 data-[selected=true]:opacity-100">
<IconActionButton
label="Open file for editing"
side="top"
onClick={() => onOpenFile(absolutePath)}
>
<HugeiconsIcon icon={File01Icon} size={11} strokeWidth={1.9} />
</IconActionButton>
</div>
) : null}

{showDiscard ? (
<div className="flex shrink-0 items-center opacity-0 transition-opacity group-hover:opacity-100 data-[focused=true]:opacity-100 data-[selected=true]:opacity-100">
<IconActionButton
Expand Down