优化侧边栏删除会话按钮

This commit is contained in:
sijinhui 2024-03-02 09:38:48 +08:00
parent 7b7d3525a2
commit 236c9cfb0f
2 changed files with 9 additions and 9 deletions

View File

@ -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;
}

View File

@ -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>