From 63c09270220fbda8adb6aa660274ee5bace82b42 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 2 Mar 2024 01:00:20 -0800 Subject: [PATCH] feat: tooltip Co-Authored-By: Jannik S. <69747628+jannikstdl@users.noreply.github.com> --- src/lib/components/chat/MessageInput.svelte | 203 +++++++++++--------- src/lib/components/common/Tooltip.svelte | 31 +++ 2 files changed, 139 insertions(+), 95 deletions(-) create mode 100644 src/lib/components/common/Tooltip.svelte diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 81a581be..022ee4fb 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -12,6 +12,7 @@ import Documents from './MessageInput/Documents.svelte'; import Models from './MessageInput/Models.svelte'; import { transcribeAudio } from '$lib/apis/audio'; + import Tooltip from '../common/Tooltip.svelte'; export let submitPrompt: Function; export let stopResponse: Function; @@ -637,24 +638,26 @@
{#if fileUploadEnabled}
- + + + + +
{/if} @@ -806,87 +809,97 @@
{#if messages.length == 0 || messages.at(-1).done == true} - {#if speechRecognitionEnabled} + + {#if speechRecognitionEnabled} + + {/if} + + + - {/if} - + {:else}