From 4b15885147772f42fd9bef46da14ad282f87989f Mon Sep 17 00:00:00 2001 From: Mathew Pareles Date: Thu, 16 Jan 2025 21:38:06 -0800 Subject: [PATCH] summary styles --- .../react/src/sidebar-tsx/SidebarChat.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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}