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"