From 0f2360a384f9b24bd56c8a933c54e396a36b51f1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 19 Dec 2023 20:08:47 -0800 Subject: [PATCH 1/2] fix: file drag and drop overlay --- src/lib/components/chat/MessageInput.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 54291f22..57f48bef 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -132,13 +132,13 @@ {#if dragged}
-
+
🏞️
Add Images
From c57c72cc39bbe6498771276162e39f32a33e798f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 19 Dec 2023 20:10:58 -0800 Subject: [PATCH 2/2] fix: disable profile image drag --- src/lib/components/chat/Messages.svelte | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 9a39089d..543ce6a5 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -362,9 +362,19 @@
{#if selectedModelfile && selectedModelfile.imageUrl} - + modelfile {:else} - + ollama {/if}
@@ -401,12 +411,14 @@ src="{$settings.gravatarUrl ? $settings.gravatarUrl : '/user'}.png" class=" max-w-[28px] object-cover rounded-full" alt="User profile" + draggable="false" /> {:else} User profile {/if} {:else if selectedModelfile} @@ -414,12 +426,14 @@ src={selectedModelfile?.imageUrl ?? '/favicon.png'} class=" max-w-[28px] object-cover rounded-full" alt="Ollama profile" + draggable="false" /> {:else} Ollama profile {/if}