From 9f18e58c698dd5e39fda2423a8da34a6a1cc8806 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Tue, 24 Dec 2024 13:21:33 +0100 Subject: [PATCH] Add conditional animation for sidebar in compact mode --- src/browser/base/zen-components/ZenCompactMode.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/browser/base/zen-components/ZenCompactMode.mjs b/src/browser/base/zen-components/ZenCompactMode.mjs index 2537b5d11..9aea80314 100644 --- a/src/browser/base/zen-components/ZenCompactMode.mjs +++ b/src/browser/base/zen-components/ZenCompactMode.mjs @@ -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 - this.sidebar.setAttribute("animate", "true"); + if (this._canAnimateSidebar) { + this.sidebar.setAttribute("animate", "true"); + } window.requestAnimationFrame(() => { let sidebarWidth = this.getAndApplySidebarWidth(); if (!this._canAnimateSidebar) {