mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-24 03:26:31 +03:00
fix: position of sidebar switch button (#3995)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
parent
b9c3a11a95
commit
e92d27549a
@ -19,10 +19,10 @@ export const SidebarHeader = (props: SidebarHeaderProps) => {
|
||||
const open = useAtomValue(appSidebarOpenAtom);
|
||||
return (
|
||||
<div className={navHeaderStyle} data-open={open}>
|
||||
<div style={{ flex: 1 }} />
|
||||
{open && <SidebarSwitch />}
|
||||
{environment.isDesktop && (
|
||||
<>
|
||||
{environment.isMacOs && <div style={{ flex: 1 }} />}
|
||||
<IconButton
|
||||
data-testid="app-sidebar-arrow-button-back"
|
||||
disabled={props.router?.history.current === 0}
|
||||
|
Loading…
Reference in New Issue
Block a user