Add conditional animation for sidebar in compact mode

This commit is contained in:
mr. M
2024-12-24 13:21:33 +01:00
parent 20c16af6d3
commit 9f18e58c69

View File

@@ -117,7 +117,9 @@ var gZenCompactModeManager = {
}
this._isAnimating = true;
// Do this so we can get the correct width ONCE compact mode styled have been applied
if (this._canAnimateSidebar) {
this.sidebar.setAttribute("animate", "true");
}
window.requestAnimationFrame(() => {
let sidebarWidth = this.getAndApplySidebarWidth();
if (!this._canAnimateSidebar) {