From 532ee5ca4ec8546fca3da4aa8da87490f5101137 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Wed, 1 Apr 2026 16:29:44 -0700 Subject: [PATCH] fix: show file action buttons only on hover without layout shift (#255) Action buttons (revert, stage) in the Changes list now use absolute positioning with a solid background overlay, so they appear on hover without taking up space or shifting file names and status letters. --- src/renderer/src/components/right-sidebar/SourceControl.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/right-sidebar/SourceControl.tsx b/src/renderer/src/components/right-sidebar/SourceControl.tsx index dee7e8f8d5e..8b49c9e714d 100644 --- a/src/renderer/src/components/right-sidebar/SourceControl.tsx +++ b/src/renderer/src/components/right-sidebar/SourceControl.tsx @@ -915,7 +915,7 @@ function UncommittedEntryRow({ onRevealInExplorer={onRevealInExplorer} >
{ if (isUnresolvedConflict && entry.status === 'deleted') { @@ -950,7 +950,7 @@ function UncommittedEntryRow({ {STATUS_LABELS[entry.status]} )} -
+
{canDiscard && (