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

View File

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