unpin sidebar when resizing to larger screen
All checks were successful
Build and Push Docker Image / build (push) Successful in 14s

This commit is contained in:
Corban-Lee Jones 2024-10-11 19:37:58 +01:00
parent 1073309646
commit 170c06ccab

View File

@ -289,6 +289,7 @@ $(".sidebar-backdrop").on("click", () => setSidebarVisibility(false));
$(window).on('resize', () => {
// Can't pass conditional directly, causes flickering effect
if (getSidebarVisibility() && $(window).width() > 992) {
setSidebarPinned(false);
setSidebarVisibility(false);
}
});