Polish changes panel toolbar state

This commit is contained in:
Bohdan Triapitsyn
2026-06-14 14:48:24 +03:00
parent 1c281df3b7
commit c92b540e7f
4 changed files with 68 additions and 244 deletions
@@ -88,6 +88,8 @@ export const PendingChangesBar: React.FC = React.memo(() => {
if (!currentDirectory) return;
if (!isGitFile(file)) return;
setIsExpanded(false);
const absolutePath = file.path;
// Dedicated mobile root: open the per-file diff inside the mobile Changes surface.
@@ -96,7 +98,6 @@ export const PendingChangesBar: React.FC = React.memo(() => {
diffPath: file.relativePath,
staged: file.hasStagedChanges && !file.hasWorkingChanges,
});
setIsExpanded(false);
return;
}