From c7e346872ebd052ebf652a634714e611987f7305 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 16 Feb 2024 17:47:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=B8=85=E6=A5=9A=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/home.module.scss | 1 + app/components/sidebar.tsx | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/components/home.module.scss b/app/components/home.module.scss index 0654b552d..f42161e21 100644 --- a/app/components/home.module.scss +++ b/app/components/home.module.scss @@ -347,4 +347,5 @@ border-radius: 0; padding: 0; height: 20px; + margin-top: 15px; } diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 8ae7a8d88..3bb1fe57e 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -230,6 +230,16 @@ export function SideBar(props: { className?: string }) { } shadow /> + { + if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) { + chatStore.clearAllData(); + } + }} + type="danger" + className={styles["custom-sidebar-clear-button"]} + />
- { - if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) { - chatStore.clearAllData(); - } - }} - type="danger" - className={styles["custom-sidebar-clear-button"]} - />