refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2025-06-16 12:04:15 +04:00
parent 4db0da2b75
commit ba6fc385bb
2 changed files with 11 additions and 0 deletions

View File

@ -858,6 +858,11 @@
const loadChat = async () => { const loadChat = async () => {
chatId.set(chatIdProp); chatId.set(chatIdProp);
if ($temporaryChatEnabled) {
temporaryChatEnabled.set(false);
}
chat = await getChatById(localStorage.token, $chatId).catch(async (error) => { chat = await getChatById(localStorage.token, $chatId).catch(async (error) => {
await goto('/'); await goto('/');
return null; return null;

View File

@ -193,6 +193,12 @@
</div> </div>
</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))} {#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=" w-full z-30 mt-5">
<div class=" flex flex-col gap-1 w-full"> <div class=" flex flex-col gap-1 w-full">