-
{file.path}
- {formatDiffTotals(file.insertions, file.deletions)}
+
+
+ {getLabel(file.path)}
+
+
+ {formatDiffTotals(file.insertions, file.deletions)}
+
))}
@@ -161,7 +175,7 @@ const useEffectiveDirectory = () => {
export const DiffView: React.FC = () => {
const { git } = useRuntimeAPIs();
const effectiveDirectory = useEffectiveDirectory();
- const { screenWidth } = useDeviceInfo();
+ const { screenWidth, isMobile } = useDeviceInfo();
const isGitRepo = useIsGitRepo(effectiveDirectory ?? null);
const status = useGitStatus(effectiveDirectory ?? null);
@@ -459,19 +473,22 @@ export const DiffView: React.FC = () => {
return (
-
-
-
- {isLoadingStatus && !status
- ? 'Loading changes…'
- : `${changedFiles.length} ${changedFiles.length === 1 ? 'file' : 'files'} changed`}
-
-
+ {!isMobile && (
+
+
+
+ {isLoadingStatus && !status
+ ? 'Loading changes…'
+ : `${changedFiles.length} ${changedFiles.length === 1 ? 'file' : 'files'} changed`}
+
+
+ )}
{selectedFileEntry && (