From d904dbb93e95010d7d768ec20c2ece43bb831bc7 Mon Sep 17 00:00:00 2001 From: Mathew Pareles Date: Sat, 11 Jan 2025 16:25:43 -0800 Subject: [PATCH] clearall style --- .../react/src/sidebar-tsx/SidebarChat.tsx | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 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 7ab45f67..88412aec 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 @@ -278,7 +278,7 @@ export const SelectedFiles = ( return ( !!selections && selections.length !== 0 && (
{selections.map((selection, i) => { @@ -334,7 +334,7 @@ export const SelectedFiles = ( setSelectionIsOpened(o => [...o.slice(0, i), ...o.slice(i + 1)]) }} > - + }
{/* selection text */} @@ -358,19 +358,27 @@ export const SelectedFiles = ( })} - {type !== 'staging' || selections.length <= 1 ? null :
+ {type !== 'staging' || selections.length === 0 ? null :
+ {/* clear all selections button */} + { setStaging([]) }} - /> + {/* { setStaging([]) }} + /> */}
}