diff --git a/src/vs/workbench/contrib/void/browser/react/src/void-command-bar-tsx/VoidCommandBar.tsx b/src/vs/workbench/contrib/void/browser/react/src/void-command-bar-tsx/VoidCommandBar.tsx
index 58e1f47d..5e3fd2fd 100644
--- a/src/vs/workbench/contrib/void/browser/react/src/void-command-bar-tsx/VoidCommandBar.tsx
+++ b/src/vs/workbench/contrib/void/browser/react/src/void-command-bar-tsx/VoidCommandBar.tsx
@@ -64,9 +64,6 @@ const VoidCommandBar = ({ uri, editor }: { uri: URI | null, editor: ICodeEditor
}
}, [sortedCommandBarURIs, uri])
- // just for style
- const [isFocused, setIsFocused] = useState(false)
-
const getNextDiffIdx = (step: 1 | -1) => {
// check undefined
if (!uri) return null
@@ -136,63 +133,88 @@ const VoidCommandBar = ({ uri, editor }: { uri: URI | null, editor: ICodeEditor
// if there are *any* changes at all
const navPanel = anyUriHasChanges &&
setIsFocused(true)}
- onBlur={() => setIsFocused(false)}
+ className="flex items-center gap-1"
>
-
-
+
-
+
-
+
-
-
+
-
- {`File ${(currUriIdx ?? 0) + 1} of ${sortedCommandBarURIs.length}`}
-
-
- {sortedDiffIds?.length ?? 0 === 0 ?
- '(No changes)'
- : `Diff ${(currDiffIdx ?? 0) + 1} of ${sortedDiffIds?.length ?? 0}`}
-
+ {currUriIdx !== null && sortedCommandBarURIs.length ?
+
+ File {currUriIdx + 1} of {sortedCommandBarURIs.length}
+
+ : '(No changes)'
+ }
+ {currDiffIdx !== null && sortedDiffIds?.length &&
+ Diff {currDiffIdx + 1} of {sortedDiffIds?.length ?? 0}
+
}
-
+
// accept/reject if current URI has changes
@@ -207,42 +229,48 @@ const VoidCommandBar = ({ uri, editor }: { uri: URI | null, editor: ICodeEditor
metricsService.capture('Reject All', {})
}
- const acceptRejectButtons = currUriHasChanges &&
-
-
-
+
+ const acceptAllButton =
- return
+ const rejectAllButton =
+
+
+ return
+ {currUriHasChanges && <>
+
+ {acceptAllButton}
+ {rejectAllButton}
+
+ >}
{navPanel}
- {acceptRejectButtons}
}