Browse Source

feat: double click title to edit

Jun Siang Cheah 11 months ago
parent
commit
6022f6f5df
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/components/layout/Sidebar.svelte

+ 4 - 0
src/lib/components/layout/Sidebar.svelte

@@ -507,6 +507,10 @@
 										showSidebar.set(false);
 									}
 								}}
+								on:dblclick={() => {
+									chatTitle = chat.title;
+									chatTitleEditId = chat.id;
+								}}
 								draggable="false"
 							>
 								<div class=" flex self-center flex-1 w-full">