mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
修正清楚数据按钮
This commit is contained in:
parent
cf65082789
commit
c7e346872e
@ -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"]}
|
||||||
|
Loading…
Reference in New Issue
Block a user