Skip to content

Commit 7c68a42

Browse files
committed
refac
1 parent 5d32498 commit 7c68a42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/components/chat/Chat.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,9 @@
12791279
const chatInputElement = document.getElementById('chat-input');
12801280
12811281
if (chatInputElement) {
1282+
await tick();
12821283
chatInputElement.style.height = '';
1284+
chatInputElement.style.height = Math.min(chatInputElement.scrollHeight, 320) + 'px';
12831285
}
12841286
12851287
const _files = JSON.parse(JSON.stringify(files));

0 commit comments

Comments
 (0)