mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-07 10:26:36 +00:00
Add conditional animation for sidebar in compact mode
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user