From f69ca21eb9b9f4bad4d51662dc80578e0d315e82 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Sun, 17 May 2026 13:06:43 +0800 Subject: [PATCH] Show diff file paths in a tooltip --- packages/app/src/git/diff-pane.tsx | 69 ++++++++++++++++-------------- 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/packages/app/src/git/diff-pane.tsx b/packages/app/src/git/diff-pane.tsx index aaa3bcf6b6..2485bf95ee 100644 --- a/packages/app/src/git/diff-pane.tsx +++ b/packages/app/src/git/diff-pane.tsx @@ -867,42 +867,49 @@ const DiffFileHeader = memo(function DiffFileHeader({ () => [styles.fileSectionHeaderContainer, isExpanded && styles.fileSectionHeaderExpanded], [isExpanded], ); - const fileHeaderTitleProps = isWeb ? { title: file.path } : {}; return ( - - - - {file.path.split("/").pop()} - - - {file.path.includes("/") ? ` ${file.path.slice(0, file.path.lastIndexOf("/"))}` : ""} - - {file.isNew && ( - - New + + + + + + {file.path.split("/").pop()} + + + {file.path.includes("/") + ? ` ${file.path.slice(0, file.path.lastIndexOf("/"))}` + : ""} + + {file.isNew && ( + + New + + )} + {file.isDeleted && ( + + Deleted + + )} - )} - {file.isDeleted && ( - - Deleted + + - )} - - - - - + + + + {file.path} + + ); });