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
@@ -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>
@@ -34,6 +34,9 @@ export const headerItem = style({
'&.top-item': {
height: '52px',
},
'&.top-item-visible': {
marginRight: '20px',
},
'&.left': {
justifyContent: 'left',
},
+1 -1
View File
@@ -38,7 +38,7 @@ async function createWindow() {
: isWindows()
? 'hidden'
: 'default',
trafficLightPosition: { x: 20, y: 18 },
trafficLightPosition: { x: 20, y: 16 },
x: mainWindowState.x,
y: mainWindowState.y,
width: mainWindowState.width,