diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index ecf4dacd7..2388af70b 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1279,7 +1279,9 @@ const chatInputElement = document.getElementById('chat-input'); if (chatInputElement) { + await tick(); chatInputElement.style.height = ''; + chatInputElement.style.height = Math.min(chatInputElement.scrollHeight, 320) + 'px'; } const _files = JSON.parse(JSON.stringify(files));