mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
修正清楚数据按钮
This commit is contained in:
@@ -347,4 +347,5 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,6 +230,16 @@ export function SideBar(props: { className?: string }) {
|
|||||||
<IconButton icon={<SettingsIcon />} shadow />
|
<IconButton icon={<SettingsIcon />} shadow />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
<IconButton
|
||||||
|
text={Locale.Settings.Danger.Clear.Title}
|
||||||
|
onClick={async () => {
|
||||||
|
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
||||||
|
chatStore.clearAllData();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
type="danger"
|
||||||
|
className={styles["custom-sidebar-clear-button"]}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<IconButton
|
<IconButton
|
||||||
@@ -247,16 +257,6 @@ export function SideBar(props: { className?: string }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<IconButton
|
|
||||||
text={Locale.Settings.Danger.Clear.Title}
|
|
||||||
onClick={async () => {
|
|
||||||
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
|
||||||
chatStore.clearAllData();
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
type="danger"
|
|
||||||
className={styles["custom-sidebar-clear-button"]}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={styles["sidebar-drag"]}
|
className={styles["sidebar-drag"]}
|
||||||
|
|||||||
Reference in New Issue
Block a user