From 8566c1c7ff1b9325556e0196d673e13c36efd0a5 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Wed, 28 Feb 2024 11:49:56 -0500 Subject: [PATCH] cleanup --- .../parameters/components/Core/ParamPositivePrompt.tsx | 2 +- invokeai/frontend/web/src/features/prompt/usePrompt.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx b/invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx index 1fde446beb..5da348f591 100644 --- a/invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx @@ -51,7 +51,7 @@ export const ParamPositivePrompt = memo(() => { value={prompt} placeholder={t('parameters.positivePromptPlaceholder')} onChange={onChange} - minH={32} + minH={28} onKeyDown={onKeyDown} variant="darkFilled" /> diff --git a/invokeai/frontend/web/src/features/prompt/usePrompt.ts b/invokeai/frontend/web/src/features/prompt/usePrompt.ts index 8c832ad8d1..4bd52172af 100644 --- a/invokeai/frontend/web/src/features/prompt/usePrompt.ts +++ b/invokeai/frontend/web/src/features/prompt/usePrompt.ts @@ -22,7 +22,6 @@ export const usePrompt = ({ prompt, textareaRef, onChange: _onChange }: UseInser const insertTrigger = useCallback( (v: string) => { - console.log({ textareaRef }) if (!textareaRef.current) { return; } @@ -42,7 +41,6 @@ export const usePrompt = ({ prompt, textareaRef, onChange: _onChange }: UseInser const finalCaretPos = newPrompt.length; newPrompt += prompt.slice(caret); - console.log({ newPrompt }) // must flush dom updates else selection gets reset flushSync(() => { @@ -58,8 +56,6 @@ export const usePrompt = ({ prompt, textareaRef, onChange: _onChange }: UseInser const onFocus = useCallback(() => { - console.log("focus") - console.log(textareaRef.current) textareaRef.current?.focus(); }, [textareaRef]);