From ba6fc385bbfb8b04668e4daf2cbdcbfc2be8c4cf Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 16 Jun 2025 12:04:15 +0400 Subject: [PATCH] refac: styling --- src/lib/components/chat/Chat.svelte | 5 +++++ src/lib/components/chat/Navbar.svelte | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 58588c282..0d0cddd1f 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -858,6 +858,11 @@ const loadChat = async () => { chatId.set(chatIdProp); + + if ($temporaryChatEnabled) { + temporaryChatEnabled.set(false); + } + chat = await getChatById(localStorage.token, $chatId).catch(async (error) => { await goto('/'); return null; diff --git a/src/lib/components/chat/Navbar.svelte b/src/lib/components/chat/Navbar.svelte index de5d1c220..e0afe577e 100644 --- a/src/lib/components/chat/Navbar.svelte +++ b/src/lib/components/chat/Navbar.svelte @@ -193,6 +193,12 @@ + {#if $temporaryChatEnabled && $chatId === 'local'} +
+
Temporary Chat
+
+ {/if} + {#if !history.currentId && !$chatId && ($banners.length > 0 || ($config?.license_metadata?.type ?? null) === 'trial' || (($config?.license_metadata?.seats ?? null) !== null && $config?.user_count > $config?.license_metadata?.seats))}