From 03210c9204bfb912bdc8671680fe80f4acec75db Mon Sep 17 00:00:00 2001 From: Jannik Streidl Date: Tue, 27 Feb 2024 15:34:00 +0100 Subject: [PATCH] keep the functionality to drag a chat --- src/lib/components/layout/Sidebar.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 6edc77881..499e0db01 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -31,6 +31,7 @@ let chatTitle = ''; let showDropdown = false; + let isEditing = false; onMount(async () => { if (window.innerWidth > 1280) { @@ -372,7 +373,7 @@ ? 'bg-gray-900' : ''} transition whitespace-nowrap text-ellipsis" href="/c/{chat.id}" - draggable="false" + draggable={isEditing ? 'false' : null} >
{ chatTitle = chat.title; chatTitleEditId = chat.id; - // editChatTitle(chat.id, 'a'); + isEditing = true; }} >