From 7d159ca723b1601c69532f5eb95c9e0c33f189f3 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 22 May 2024 23:34:29 -0700 Subject: [PATCH] fix: styling --- 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 b57a9f6ff..83369b735 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -165,6 +165,7 @@ if ($page.url.searchParams.get('q')) { prompt = $page.url.searchParams.get('q') ?? ''; + if (prompt) { await tick(); submitPrompt(prompt); @@ -318,6 +319,7 @@ // Reset chat input textarea prompt = ''; + document.getElementById('chat-textarea').style.height = ''; files = []; // Send prompt