From 7c68a424f82f32d7be4e59cfb2ee6552e3de9216 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 25 Feb 2025 01:44:39 -0800 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 2 ++ 1 file changed, 2 insertions(+) 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));