mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-25 04:50:00 -06: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.
|
// rest of the content rendering. This prevents jumpy/glitchy behavior on page reloads.
|
||||||
document.body.setAttribute('data-sidenav-pinned', '');
|
document.body.setAttribute('data-sidenav-pinned', '');
|
||||||
document.body.setAttribute('data-sidenav-show', '');
|
document.body.setAttribute('data-sidenav-show', '');
|
||||||
|
} else if (sideNavState.pinned === false) {
|
||||||
|
document.body.setAttribute('data-sidenav-hidden', '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user