Browse Source

refac: styling

Timothy Jaeryang Baek 1 week ago
parent
commit
ba6fc385bb
2 changed files with 11 additions and 0 deletions
  1. 5 0
      src/lib/components/chat/Chat.svelte
  2. 6 0
      src/lib/components/chat/Navbar.svelte

+ 5 - 0
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;

+ 6 - 0
src/lib/components/chat/Navbar.svelte

@@ -193,6 +193,12 @@
 		</div>
 	</div>
 
+	{#if $temporaryChatEnabled && $chatId === 'local'}
+		<div class=" w-full z-30 text-center">
+			<div class="text-xs text-gray-500">Temporary Chat</div>
+		</div>
+	{/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))}
 		<div class=" w-full z-30 mt-5">
 			<div class=" flex flex-col gap-1 w-full">