From 512345f40e56cbcd3b1efcc5fb8b9325f90557c2 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 20 May 2025 23:33:23 +0400 Subject: [PATCH] refac: chat transition --- src/lib/components/chat/Chat.svelte | 371 ++++++++++++++-------------- 1 file changed, 187 insertions(+), 184 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 77f2fd6a1..12775d3cb 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -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,196 +2012,198 @@ id="chat-container" > {#if !loading} - {#if $settings?.backgroundImageUrl ?? null} -
- -
- {/if} - - - - + {#if $settings?.backgroundImageUrl ?? null} +
-
- {#if $settings?.landingPageMode === 'chat' || createMessagesList(history, history.currentId).length > 0} - - - - { - const model = $models.find((m) => m.id === e); - if (model) { - return [...a, model]; - } - return a; - }, [])} - {submitPrompt} - {stopResponse} - {showMessage} - {eventTarget} - /> - + { + const model = $models.find((m) => m.id === e); + if (model) { + return [...a, model]; + } + return a; + }, [])} + {submitPrompt} + {stopResponse} + {showMessage} + {eventTarget} + /> + +
{:else if loading}