From e379707a68325fb4eb010e43f340a85bf1b612cb Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Date: Sun, 17 May 2026 16:02:29 +0800 Subject: [PATCH] Show diff file paths in a tooltip (#1061) * fix: add file path titles to diff headers * Show diff file paths in a tooltip * Fix workspace layout hydration * Revert "Fix workspace layout hydration" This reverts commit 05c89909b70b4724648a2464ea0bfa64e33655cd. --- packages/app/src/git/diff-pane.tsx | 67 +++++++++++++++++------------- 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/packages/app/src/git/diff-pane.tsx b/packages/app/src/git/diff-pane.tsx index 04d1c9470..c312ebdb2 100644 --- a/packages/app/src/git/diff-pane.tsx +++ b/packages/app/src/git/diff-pane.tsx @@ -842,37 +842,46 @@ const DiffFileHeader = memo(function DiffFileHeader({ 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} + + ); });