diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx index 3db1a6c6..54bc1d85 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx @@ -307,7 +307,7 @@ export const SelectedFiles = ( } return ( -
+
{allSelections.map((selection, i) => { @@ -322,16 +322,16 @@ export const SelectedFiles = ( > {/* selection summary */}
{ if (isThisSelectionProspective) { // add prospective selection to selections @@ -362,7 +362,7 @@ export const SelectedFiles = ( {/* X button */} {type === 'staging' && !isThisSelectionProspective && { e.stopPropagation(); // don't open/close selection if (type !== 'staging') return; @@ -370,7 +370,7 @@ export const SelectedFiles = ( setSelectionIsOpened(o => [...o.slice(0, i), ...o.slice(i + 1)]) }} > - + } @@ -420,7 +420,9 @@ export const SelectedFiles = (
) return <> - {i === selections.length &&
} + {selections.length > 0 && i === selections.length && +
// divider between `selections` and `prospectiveSelections` + } {selectionHTML}