mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 06:45:24 +00:00
refac: chat transition
This commit is contained in:
parent
4e4b5ab83b
commit
512345f40e
1 changed files with 187 additions and 184 deletions
|
|
@ -88,6 +88,7 @@
|
||||||
import Placeholder from './Placeholder.svelte';
|
import Placeholder from './Placeholder.svelte';
|
||||||
import NotificationToast from '../NotificationToast.svelte';
|
import NotificationToast from '../NotificationToast.svelte';
|
||||||
import Spinner from '../common/Spinner.svelte';
|
import Spinner from '../common/Spinner.svelte';
|
||||||
|
import { fade } from 'svelte/transition';
|
||||||
|
|
||||||
export let chatIdProp = '';
|
export let chatIdProp = '';
|
||||||
|
|
||||||
|
|
@ -2011,6 +2012,7 @@
|
||||||
id="chat-container"
|
id="chat-container"
|
||||||
>
|
>
|
||||||
{#if !loading}
|
{#if !loading}
|
||||||
|
<div in:fade={{ duration: 100 }} class="w-full h-full flex flex-col">
|
||||||
{#if $settings?.backgroundImageUrl ?? null}
|
{#if $settings?.backgroundImageUrl ?? null}
|
||||||
<div
|
<div
|
||||||
class="absolute {$showSidebar
|
class="absolute {$showSidebar
|
||||||
|
|
@ -2201,6 +2203,7 @@
|
||||||
{eventTarget}
|
{eventTarget}
|
||||||
/>
|
/>
|
||||||
</PaneGroup>
|
</PaneGroup>
|
||||||
|
</div>
|
||||||
{:else if loading}
|
{:else if loading}
|
||||||
<div class=" flex items-center justify-center h-full w-full">
|
<div class=" flex items-center justify-center h-full w-full">
|
||||||
<div class="m-auto">
|
<div class="m-auto">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue