doc improvement

This commit is contained in:
Corban-Lee Jones 2024-10-15 12:07:08 +01:00
parent c278614e86
commit 004e7b8b11

View File

@ -224,6 +224,9 @@ $(".sidebar-backdrop").on("click", () => setSidebarVisibility(false));
$(window).on('resize', () => {
const sidebarVisibility = getSidebarVisibility();
// If the sidebar expands to be permanently visible, remove the pin & open
// effects, so that it collapses again when shrinking the screen.
//
// Can't pass conditional directly, causes flickering effect
if (sidebarVisibility && $(window).width() > 992) {
setSidebarPinned(false);