fix: swap navigation bar items (#3967)

This commit is contained in:
Nishant Choudhary 2023-08-27 21:07:22 +05:30 committed by GitHub
parent 118165bf72
commit 0ff4d9d0b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ export const SidebarHeader = (props: SidebarHeaderProps) => {
const open = useAtomValue(appSidebarOpenAtom); const open = useAtomValue(appSidebarOpenAtom);
return ( return (
<div className={navHeaderStyle} data-open={open}> <div className={navHeaderStyle} data-open={open}>
{open && <SidebarSwitch />}
{environment.isDesktop && ( {environment.isDesktop && (
<> <>
{environment.isMacOs && <div style={{ flex: 1 }} />} {environment.isMacOs && <div style={{ flex: 1 }} />}
@ -50,7 +51,6 @@ export const SidebarHeader = (props: SidebarHeaderProps) => {
{!environment.isMacOs && <div style={{ flex: 1 }} />} {!environment.isMacOs && <div style={{ flex: 1 }} />}
</> </>
)} )}
{open && <SidebarSwitch />}
</div> </div>
); );
}; };