From 5640b3869439f298a45d54a0aa2e38d5c4572524 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 27 Feb 2024 22:35:57 -0800 Subject: [PATCH] fix: title edit issue --- src/lib/components/layout/Sidebar.svelte | 50 +++++++++++++----------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 75e05bbd7..238b9e66f 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -366,28 +366,34 @@ } }) as chat, i}
- -
-
- {#if chatTitleEditId === chat.id} - - {:else} - {chat.title} - {/if} -
+ {#if chatTitleEditId === chat.id} +
+
-
+ {:else} + +
+
+ {chat.title} +
+
+
+ {/if} {#if chat.id === $chatId}
@@ -399,7 +405,6 @@ editChatTitle(chat.id, chatTitle); chatTitleEditId = null; chatTitle = ''; - isEditing = false; }} > { chatTitle = chat.title; chatTitleEditId = chat.id; - isEditing = true; }} >