fix: header ui styles (#4156)

This commit is contained in:
Peng Xiao
2023-09-04 18:13:20 +08:00
committed by GitHub
parent e72a10153e
commit 5288645e33
6 changed files with 41 additions and 14 deletions

View File

@@ -64,8 +64,14 @@ export const Header = forwardRef<HTMLDivElement, HeaderPros>(function Header(
block: isTinyScreen,
})}
>
<div className={clsx(style.headerItem, 'top-item')}>
<div ref={sidebarSwitchRef} style={{ marginRight: open ? 0 : 20 }}>
<div
className={clsx(
style.headerItem,
'top-item',
!open ? 'top-item-visible' : ''
)}
>
<div ref={sidebarSwitchRef}>
<SidebarSwitch show={!open} />
</div>
</div>

View File

@@ -34,6 +34,9 @@ export const headerItem = style({
'&.top-item': {
height: '52px',
},
'&.top-item-visible': {
marginRight: '20px',
},
'&.left': {
justifyContent: 'left',
},