From 6022f6f5df9a379c75cd9e81d41c6c02f844f4d9 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Mon, 3 Jun 2024 18:48:27 +0100 Subject: [PATCH] feat: double click title to edit --- src/lib/components/layout/Sidebar.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 0bf00e472..8b68654df 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -507,6 +507,10 @@ showSidebar.set(false); } }} + on:dblclick={() => { + chatTitle = chat.title; + chatTitleEditId = chat.id; + }} draggable="false" >