mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#6797: Improve sidenav state handling before load
This commit is contained in:
@ -93,6 +93,8 @@
|
||||
// rest of the content rendering. This prevents jumpy/glitchy behavior on page reloads.
|
||||
document.body.setAttribute('data-sidenav-pinned', '');
|
||||
document.body.setAttribute('data-sidenav-show', '');
|
||||
} else if (sideNavState.pinned === false) {
|
||||
document.body.setAttribute('data-sidenav-hidden', '');
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
Reference in New Issue
Block a user