From 170c06ccab63c4cd5b09d76841d0b877bb7a8bfe Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Fri, 11 Oct 2024 19:37:58 +0100 Subject: [PATCH] unpin sidebar when resizing to larger screen --- apps/home/static/home/js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/home/static/home/js/index.js b/apps/home/static/home/js/index.js index 8fa85ed..5af3203 100644 --- a/apps/home/static/home/js/index.js +++ b/apps/home/static/home/js/index.js @@ -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); } });