doc improvement
This commit is contained in:
parent
c278614e86
commit
004e7b8b11
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user