From d492d2915304c4eda10e2fe825a606e80b213448 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 17 Jul 2024 12:02:54 +0200 Subject: [PATCH] fix: files overlay --- src/lib/components/chat/MessageInput.svelte | 20 ++--------- .../chat/MessageInput/FilesOverlay.svelte | 35 +++++++++++++++++++ 2 files changed, 37 insertions(+), 18 deletions(-) create mode 100644 src/lib/components/chat/MessageInput/FilesOverlay.svelte diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 228295b51..cc9c50938 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -41,6 +41,7 @@ import VoiceRecording from './MessageInput/VoiceRecording.svelte'; import { transcribeAudio } from '$lib/apis/audio'; import FileItem from '../common/FileItem.svelte'; + import FilesOverlay from './MessageInput/FilesOverlay.svelte'; const i18n = getContext('i18n'); @@ -298,24 +299,7 @@ }); -{#if dragged} -
-
-
-
- -
-
-
-
-{/if} +
diff --git a/src/lib/components/chat/MessageInput/FilesOverlay.svelte b/src/lib/components/chat/MessageInput/FilesOverlay.svelte new file mode 100644 index 000000000..a8acc6a3e --- /dev/null +++ b/src/lib/components/chat/MessageInput/FilesOverlay.svelte @@ -0,0 +1,35 @@ + + +{#if show} +
+
+
+
+ +
+
+
+
+{/if}