From 73a251fc49e9bfdf8725cb4a5de5c30c5a9388e9 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 14 Oct 2024 23:55:50 -0700 Subject: [PATCH] enh: drag ghost --- src/lib/components/common/DragGhost.svelte | 29 +++++++++ .../components/layout/Sidebar/ChatItem.svelte | 64 ++++++++++++++++++- 2 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 src/lib/components/common/DragGhost.svelte diff --git a/src/lib/components/common/DragGhost.svelte b/src/lib/components/common/DragGhost.svelte new file mode 100644 index 000000000..a7f9c2934 --- /dev/null +++ b/src/lib/components/common/DragGhost.svelte @@ -0,0 +1,29 @@ + + + + + +
+ +
diff --git a/src/lib/components/layout/Sidebar/ChatItem.svelte b/src/lib/components/layout/Sidebar/ChatItem.svelte index ff96ed05f..bebc63785 100644 --- a/src/lib/components/layout/Sidebar/ChatItem.svelte +++ b/src/lib/components/layout/Sidebar/ChatItem.svelte @@ -1,7 +1,7 @@ -
+{#if drag && x && y} + +
+
+
+ {chat.title} +
+
+
+
+{/if} + +
{#if confirmEdit}