Timothy Jaeryang Baek 2 月之前
父节点
当前提交
04f37ca279
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/lib/components/layout/Sidebar.svelte

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

@@ -493,6 +493,15 @@
 	}}
 />
 
+<button
+	id="sidebar-new-chat-button"
+	class="hidden"
+	on:click={() => {
+		goto('/');
+		newChatHandler();
+	}}
+/>
+
 {#if !$mobile && !$showSidebar}
 	<div
 		class=" py-2 px-1.5 flex flex-col justify-between text-black dark:text-white h-full border-e border-gray-50 dark:border-gray-850 z-10"