From 07a556df55136ecc6a1695780739369712bf7139 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 8 Oct 2024 13:45:34 -0700 Subject: [PATCH] refac: landing page styling --- src/lib/components/chat/Chat.svelte | 72 +++++++++++----------- src/lib/components/chat/Placeholder.svelte | 2 +- 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index c08ac35fd..b169c66bf 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -2173,42 +2173,44 @@ {:else} - { - const model = $models.find((m) => m.id === e); - if (model?.info?.meta?.toolIds ?? false) { - return [...new Set([...a, ...model.info.meta.toolIds])]; - } - return a; - }, [])} - transparentBackground={$settings?.backgroundImageUrl ?? false} - {stopResponse} - {createMessagePair} - on:upload={async (e) => { - const { type, data } = e.detail; +
+ { + const model = $models.find((m) => m.id === e); + if (model?.info?.meta?.toolIds ?? false) { + return [...new Set([...a, ...model.info.meta.toolIds])]; + } + return a; + }, [])} + transparentBackground={$settings?.backgroundImageUrl ?? false} + {stopResponse} + {createMessagePair} + on:upload={async (e) => { + const { type, data } = e.detail; - if (type === 'web') { - await uploadWeb(data); - } else if (type === 'youtube') { - await uploadYoutubeTranscription(data); - } - }} - on:submit={async (e) => { - if (e.detail) { - prompt = ''; - await tick(); - submitPrompt(e.detail); - } - }} - /> + if (type === 'web') { + await uploadWeb(data); + } else if (type === 'youtube') { + await uploadYoutubeTranscription(data); + } + }} + on:submit={async (e) => { + if (e.detail) { + prompt = ''; + await tick(); + submitPrompt(e.detail); + } + }} + /> +
{/if} diff --git a/src/lib/components/chat/Placeholder.svelte b/src/lib/components/chat/Placeholder.svelte index 7b9a0e9ea..3105e4452 100644 --- a/src/lib/components/chat/Placeholder.svelte +++ b/src/lib/components/chat/Placeholder.svelte @@ -89,7 +89,7 @@ {#key mounted} -
+
{#if $temporaryChatEnabled}