some adjustments

This commit is contained in:
Michael Freno
2025-12-29 00:23:00 -05:00
parent a7455bf9b1
commit c47326f417
3 changed files with 22 additions and 10 deletions

View File

@@ -40,6 +40,14 @@ function AppLayout(props: { children: any }) {
setRightBarVisible(true);
}
});
// Hide leftbar on mobile after 500ms with translation animation
const currentIsMobile = isMobile(windowWidth());
if (currentIsMobile) {
setTimeout(() => {
setLeftBarVisible(false);
}, 1000);
}
});
// Auto-hide on scroll (mobile only)