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(component): app sidebar will never float when menu not opened (#5529)

Cats Juice611c6e85bb59
diff --git a/packages/frontend/component/src/components/app-sidebar/index.tsx b/packages/frontend/component/src/components/app-sidebar/index.tsx
index 4292c0c042..f10925c6cb 100644
--- a/packages/frontend/component/src/components/app-sidebar/index.tsx
+++ b/packages/frontend/component/src/components/app-sidebar/index.tsx
@@ -61,7 +61,7 @@ export function AppSidebar(props: AppSidebarProps): ReactElement {
// so that the sidebar can be closed on mobile by default
setOpen(!isFloating);
}
- setFloating(isFloating && !!open);
+ setFloating(isFloating);
}
const dOnResize = debounce(onResize, 50);