mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 08:31:33 +03:00
fix: swap navigation bar items (#3967)
This commit is contained in:
parent
118165bf72
commit
0ff4d9d0b1
@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user