New Chat Button文字随着侧边栏变窄自动隐藏

This commit is contained in:
dakai 2023-04-14 09:23:10 +08:00
parent e6f1e84f29
commit 356ff49fbd
2 changed files with 7 additions and 3 deletions

View File

@ -333,7 +333,7 @@
.sidebar-action-collapse {
margin-top: 15px;
}
.sidebar-action:not(:last-child) {
.sidebar-action {
margin-right: 15px;
}
.chat {

View File

@ -293,13 +293,17 @@ function _Home() {
</div>
<div
className={
sidebarCollapse ? styles["sidebar-action-collapse"] : undefined
sidebarCollapse
? styles["sidebar-action-collapse"]
: styles["sidebar-action"]
}
>
<IconButton
icon={<AddIcon />}
text={
isMobileScreen()
chatStore.config.sidebarWidth <= 285
? undefined
: isMobileScreen()
? undefined
: sidebarCollapse
? undefined