mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 20:57:08 +08: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);
|
const dOnResize = debounce(onResize, 50);
|
||||||
|
onResize();
|
||||||
window.addEventListener('resize', dOnResize);
|
window.addEventListener('resize', dOnResize);
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('resize', dOnResize);
|
window.removeEventListener('resize', dOnResize);
|
||||||
|
|||||||
Reference in New Issue
Block a user