From 52fb09ff953d1b58edcb5973a134b60e2f88b9dc Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 2 May 2024 00:48:07 -0700 Subject: [PATCH] fix: chat input variable styling issue --- src/lib/components/chat/MessageInput.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index af1a7711e..fccf37994 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -828,6 +828,9 @@ e.preventDefault(); e.target.setSelectionRange(word?.startIndex, word.endIndex + 1); } + + e.target.style.height = ''; + e.target.style.height = Math.min(e.target.scrollHeight, 200) + 'px'; } }} rows="1"