mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
New Chat Button文字随着侧边栏变窄自动隐藏
This commit is contained in:
parent
e6f1e84f29
commit
356ff49fbd
@ -333,7 +333,7 @@
|
||||
.sidebar-action-collapse {
|
||||
margin-top: 15px;
|
||||
}
|
||||
.sidebar-action:not(:last-child) {
|
||||
.sidebar-action {
|
||||
margin-right: 15px;
|
||||
}
|
||||
.chat {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user