Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: position of sidebar switch button (#3995)

Camole92d27549a82
diff --git a/packages/component/src/components/app-sidebar/sidebar-header/index.tsx b/packages/component/src/components/app-sidebar/sidebar-header/index.tsx
index 2ade102ddf..e9a8eaeb2d 100644
--- a/packages/component/src/components/app-sidebar/sidebar-header/index.tsx
+++ b/packages/component/src/components/app-sidebar/sidebar-header/index.tsx
@@ -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}