mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: position of sidebar switch button (#3995)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user