From accff821f8f84074ab4bb4ca5e1c88dd40b696d3 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Mon, 13 Jan 2025 16:54:24 -0800 Subject: [PATCH] style fixes --- .../void/browser/inlineDiffsService.ts | 1 + .../src/quick-edit-tsx/QuickEditChat.tsx | 21 ++++--------- .../react/src/sidebar-tsx/SidebarChat.tsx | 30 ++++--------------- .../void/browser/react/src/util/inputs.tsx | 5 ++-- 4 files changed, 16 insertions(+), 41 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/inlineDiffsService.ts b/src/vs/workbench/contrib/void/browser/inlineDiffsService.ts index 0422f5df..4d802909 100644 --- a/src/vs/workbench/contrib/void/browser/inlineDiffsService.ts +++ b/src/vs/workbench/contrib/void/browser/inlineDiffsService.ts @@ -378,6 +378,7 @@ class InlineDiffsService extends Disposable implements IInlineDiffsService { } }, onChangeHeight(height) { + if (height === 0) return // the viewZone sets this height to the container if it's out of view, ignore it viewZone.heightInPx = height // re-render with this new height editor.changeViewZones(accessor => { diff --git a/src/vs/workbench/contrib/void/browser/react/src/quick-edit-tsx/QuickEditChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/quick-edit-tsx/QuickEditChat.tsx index 755c3dec..b037c71b 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/quick-edit-tsx/QuickEditChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/quick-edit-tsx/QuickEditChat.tsx @@ -75,7 +75,7 @@ export const QuickEditChat = ({ const keybindingString = accessor.get('IKeybindingService').lookupKeybinding(VOID_CTRL_K_ACTION_ID)?.getLabel() - return
+ return
{/* input */}
{/* text input */} { @@ -129,7 +119,8 @@ export const QuickEditChat = ({ fnsRef={textAreaFnsRef} - placeholder={`${keybindingString} to select`} + placeholder={`Enter instructions...`} + // ${keybindingString} to select. onChangeText={useCallback((newStr: string) => { setInstructionsAreEmpty(!newStr) 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 de424fe3..83267d0f 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 @@ -177,8 +177,8 @@ export const ButtonSubmit = ({ className, disabled, ...props }: ButtonProps & Re return