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
7b7d3525a2
commit
236c9cfb0f
@ -323,7 +323,7 @@
|
||||
}
|
||||
|
||||
.sidebar-action:not(:last-child) {
|
||||
margin-right: 15px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.loading-content {
|
||||
@ -340,12 +340,12 @@
|
||||
}
|
||||
|
||||
.custom-sidebar-clear-button {
|
||||
background-color: transparent !important;
|
||||
//background-color: rgb(255 255 255);
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
height: 20px;
|
||||
margin-top: 15px;
|
||||
//border-radius: 0;
|
||||
//padding: 0;
|
||||
//height: 20px;
|
||||
//margin-top: 15px;
|
||||
}
|
||||
|
@ -232,15 +232,15 @@ export function SideBar(props: { className?: string }) {
|
||||
</div>
|
||||
<div className={styles["sidebar-action"]}>
|
||||
<IconButton
|
||||
text={Locale.Settings.Danger.Clear.Title}
|
||||
// text={Locale.Settings.Danger.Clear.Title}
|
||||
onClick={async () => {
|
||||
if (await showConfirm(Locale.Settings.Danger.Clear.Confirm)) {
|
||||
chatStore.clearAllData();
|
||||
}
|
||||
}}
|
||||
title={"123fas"}
|
||||
title={Locale.Settings.Danger.Clear.Title}
|
||||
icon={<DeleteIcon />}
|
||||
type="danger"
|
||||
// type="danger"
|
||||
className={styles["custom-sidebar-clear-button"]}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user