From 28faf00ef19211be2448b4490686a183cc8536e0 Mon Sep 17 00:00:00 2001 From: rob rhyne Date: Wed, 22 Jan 2025 15:26:30 -0500 Subject: [PATCH 1/2] small margin change --- .../webviews/chat/cells/messageCell/assistant/SearchResults.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx b/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx index e620bf7a343f..358a94fa29f2 100644 --- a/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx +++ b/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx @@ -212,7 +212,7 @@ export const SearchResults = ({ {!!resultsToShow && (
From eee26579937794309ba259d9f59825fadbf75741 Mon Sep 17 00:00:00 2001 From: rob rhyne Date: Wed, 22 Jan 2025 19:16:16 -0500 Subject: [PATCH 2/2] Fixes a leftover icon change, adds drop shadow to popover, fixes text muted on hover items --- .../messageCell/human/editor/toolbar/SubmitButton.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/vscode/webviews/chat/cells/messageCell/human/editor/toolbar/SubmitButton.tsx b/vscode/webviews/chat/cells/messageCell/human/editor/toolbar/SubmitButton.tsx index 9086e6678ac4..8c34ccaa73d9 100644 --- a/vscode/webviews/chat/cells/messageCell/human/editor/toolbar/SubmitButton.tsx +++ b/vscode/webviews/chat/cells/messageCell/human/editor/toolbar/SubmitButton.tsx @@ -16,7 +16,7 @@ import { Pencil, Play, Search, - Sparkles, + Brain, Square, } from 'lucide-react' import type { FC, FunctionComponent, KeyboardEventHandler, PropsWithChildren } from 'react' @@ -65,7 +65,7 @@ function getIntentOptions({ title: (

Run detected intent

-

+

{isDotComUser ? 'Detects intent and runs appropriately' : `Currently: ${ @@ -74,7 +74,7 @@ function getIntentOptions({

), - icon: Sparkles, + icon: Brain, intent: undefined, hidden: !intentDetectionAvailable, disabled: isDotComUser, @@ -194,7 +194,6 @@ export const SubmitButton: FC<{ 'tw-px-6 tw-py-1', 'tw-rounded-full', 'tw-w-full tw-relative tw-border tw-border-button-border tw-box-content tw-bg-button-background hover:tw-bg-button-background-hover tw-text-button-foreground', - 'disabled:tw-bg-button-secondary-background disabled:tw-text-muted-foreground' )} title={inProgress ? 'Stop' : 'Send'} @@ -219,7 +218,6 @@ export const SubmitButton: FC<{ 'tw-px-3 tw-py-1 md:twpx-4 md:tw-py-2', 'tw-rounded-tl-full tw-rounded-bl-full', 'tw-w-full tw-relative tw-border tw-border-button-border tw-box-content tw-bg-button-background hover:tw-bg-button-background-hover tw-text-button-foreground', - 'disabled:tw-bg-button-secondary-background disabled:tw-text-muted-foreground' )} title="Send" @@ -306,7 +304,7 @@ export const SubmitButton: FC<{ )} popoverContentProps={{ - className: 'tw-w-[350px] !tw-p-0 tw-z-10 tw-my-2', + className: 'tw-shadow-xl tw-w-[350px] !tw-p-0 tw-z-10 tw-my-2', onCloseAutoFocus: event => { // Prevent the popover trigger from stealing focus after the user selects an // item. We want the focus to return to the editor. @@ -331,7 +329,6 @@ export const SubmitButton: FC<{
) } - export const PopoverItem: FunctionComponent< PropsWithChildren<{ popoverContent: (close: () => void) => React.ReactNode