mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): sidebar can not be collapsed on mobile (#8475)
close AF-1474
This commit is contained in:
@@ -90,6 +90,7 @@ export function AppSidebar({ children }: PropsWithChildren) {
|
||||
}
|
||||
|
||||
const dOnResize = debounce(onResize, 50);
|
||||
onResize();
|
||||
window.addEventListener('resize', dOnResize);
|
||||
return () => {
|
||||
window.removeEventListener('resize', dOnResize);
|
||||
|
||||
Reference in New Issue
Block a user