mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 19:46:37 +08:00
New Chat Button文字随着侧边栏变窄自动隐藏
This commit is contained in:
parent
e6f1e84f29
commit
356ff49fbd
@ -333,7 +333,7 @@
|
|||||||
.sidebar-action-collapse {
|
.sidebar-action-collapse {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
.sidebar-action:not(:last-child) {
|
.sidebar-action {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
.chat {
|
.chat {
|
||||||
|
@ -293,13 +293,17 @@ function _Home() {
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
sidebarCollapse ? styles["sidebar-action-collapse"] : undefined
|
sidebarCollapse
|
||||||
|
? styles["sidebar-action-collapse"]
|
||||||
|
: styles["sidebar-action"]
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={<AddIcon />}
|
icon={<AddIcon />}
|
||||||
text={
|
text={
|
||||||
isMobileScreen()
|
chatStore.config.sidebarWidth <= 285
|
||||||
|
? undefined
|
||||||
|
: isMobileScreen()
|
||||||
? undefined
|
? undefined
|
||||||
: sidebarCollapse
|
: sidebarCollapse
|
||||||
? undefined
|
? undefined
|
||||||
|
Loading…
Reference in New Issue
Block a user