From 5fea0a222154f68bf4e51cf32e8433bfffb61b82 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 10 Apr 2025 21:52:03 -0700 Subject: [PATCH] refac: styling --- src/app.css | 4 -- src/lib/components/chat/Chat.svelte | 43 +++++++++++---------- src/lib/components/chat/ChatControls.svelte | 6 +-- 3 files changed, 25 insertions(+), 28 deletions(-) diff --git a/src/app.css b/src/app.css index 86e8438f0..250a29283 100644 --- a/src/app.css +++ b/src/app.css @@ -91,10 +91,6 @@ textarea::placeholder { -webkit-app-region: no-drag; } -iframe { - @apply rounded-lg; -} - li p { display: inline; } diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 7275baed9..cbd6a72c4 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -401,6 +401,7 @@ if (!$chatId) { chatIdUnsubscriber = chatId.subscribe(async (value) => { if (!value) { + await tick(); // Wait for DOM updates await initNewChat(); } }); @@ -1927,7 +1928,7 @@ : ' '} w-full max-w-full flex flex-col" id="chat-container" > - {#if chatIdProp === '' || (!loading && chatIdProp)} + {#if !loading} {#if $settings?.backgroundImageUrl ?? null}
- + + + {#if !history.currentId && !$chatId && selectedModels.length <= 1 && ($banners.length > 0 || ($config?.license_metadata?.type ?? null) === 'trial' || (($config?.license_metadata?.seats ?? null) !== null && $config?.user_count > $config?.license_metadata?.seats))}
diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index 248d8b6d3..92c7e4d8d 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -223,14 +223,14 @@ showControls.set(false); }} collapsible={true} - class="pt-8" + class=" z-10 " > {#if $showControls} -
+
{#if $showCallOverlay}