mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 16:16:39 +08:00
优化侧边栏删除会话按钮
This commit is contained in:
parent
7b7d3525a2
commit
236c9cfb0f
@ -323,7 +323,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-action:not(:last-child) {
|
.sidebar-action:not(:last-child) {
|
||||||
margin-right: 15px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-content {
|
.loading-content {
|
||||||
@ -340,12 +340,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.custom-sidebar-clear-button {
|
.custom-sidebar-clear-button {
|
||||||
background-color: transparent !important;
|
//background-color: rgb(255 255 255);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
|
||||||
border-radius: 0;
|
//border-radius: 0;
|
||||||
padding: 0;
|
//padding: 0;
|
||||||
height: 20px;
|
//height: 20px;
|
||||||
margin-top: 15px;
|
//margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
@ -232,15 +232,15 @@ export function SideBar(props: { className?: string }) {
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles["sidebar-action"]}>
|
<div className={styles["sidebar-action"]}>
|
||||||
<IconButton
|
<IconButton
|
||||||
text={Locale.Settings.Danger.Clear.Title}
|
// text={Locale.Settings.Danger.Clear.Title}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
||||||
chatStore.clearAllData();
|
chatStore.clearAllData();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
title={"123fas"}
|
title={Locale.Settings.Danger.Clear.Title}
|
||||||
icon={<DeleteIcon />}
|
icon={<DeleteIcon />}
|
||||||
type="danger"
|
// type="danger"
|
||||||
className={styles["custom-sidebar-clear-button"]}
|
className={styles["custom-sidebar-clear-button"]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user