From ddd9cf857f2e5b60e910a862824667376762e41a Mon Sep 17 00:00:00 2001 From: Mathew Pareles Date: Thu, 16 Jan 2025 03:31:17 -0800 Subject: [PATCH] ux --- .../void/browser/react/src/sidebar-tsx/SidebarChat.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 e534a324..b6ba1130 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 @@ -312,9 +312,9 @@ export const SelectedFiles = ( rounded-md px-1 w-fit h-fit select-none - ${isThisSelectionProspective ? 'bg-void-1' : 'bg-void-bg-3 hover:brightness-95'} - text-void-fg-1 text-xs text-nowrap - border rounded-xs ${isClearHovered ? 'border-void-border-1' : 'border-void-border-2'} hover:border-void-border-1 + ${isThisSelectionProspective ? 'bg-void-1 text-void-fg-3' : 'bg-void-bg-3 hover:brightness-95 text-void-fg-1'} + text-xs text-nowrap + border rounded-xs ${isClearHovered && !isThisSelectionProspective ? 'border-void-border-1' : 'border-void-border-2'} hover:border-void-border-1 transition-all duration-150`} onClick={() => { if (isThisSelectionProspective) { // add prospective selection to selections @@ -343,7 +343,7 @@ export const SelectedFiles = ( {/* X button */} - {type === 'staging' && + {type === 'staging' && !isThisSelectionProspective && { @@ -360,7 +360,7 @@ export const SelectedFiles = ( {/* clear all selections button */} - {type !== 'staging' || allSelections.length === 0 || i !== allSelections.length - 1 + {type !== 'staging' || selections.length === 0 || i !== allSelections.length - 1 ? null :