diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 0bf00e4722..b1615e0489 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -205,6 +205,10 @@ await archiveChatById(localStorage.token, id); await chats.set(await getChatList(localStorage.token)); }; + + const focusEdit = async (node: HTMLInputElement) => { + node.focus(); + }; @@ -489,7 +493,11 @@ ? 'bg-gray-100 dark:bg-gray-950' : 'group-hover:bg-gray-100 dark:group-hover:bg-gray-950'} whitespace-nowrap text-ellipsis" > - + {:else} { + chatTitle = chat.title; + chatTitleEditId = chat.id; + }} draggable="false" >