refac: chat transition

This commit is contained in:
Timothy Jaeryang Baek 2025-05-20 23:33:23 +04:00
parent 4e4b5ab83b
commit 512345f40e

View File

@ -88,6 +88,7 @@
import Placeholder from './Placeholder.svelte';
import NotificationToast from '../NotificationToast.svelte';
import Spinner from '../common/Spinner.svelte';
import { fade } from 'svelte/transition';
export let chatIdProp = '';
@ -2011,6 +2012,7 @@
id="chat-container"
>
{#if !loading}
<div in:fade={{ duration: 100 }} class="w-full h-full flex flex-col">
{#if $settings?.backgroundImageUrl ?? null}
<div
class="absolute {$showSidebar
@ -2201,6 +2203,7 @@
{eventTarget}
/>
</PaneGroup>
</div>
{:else if loading}
<div class=" flex items-center justify-center h-full w-full">
<div class="m-auto">