Add opacity transition to sidebar during animation

This commit is contained in:
mr. m
2025-04-10 01:36:30 +02:00
parent b49c47516e
commit f687df335e

View File

@@ -238,12 +238,14 @@ var gZenCompactModeManager = {
)
.then(() => {
this.sidebar.style.transition = 'none';
this.sidebar.style.opacity = 0;
this.getAndApplySidebarWidth();
setTimeout(() => {
this.sidebar.removeAttribute('animate');
document.documentElement.removeAttribute('zen-compact-animating');
this.sidebar.style.removeProperty('margin-right');
this.sidebar.style.removeProperty('margin-left');
this.sidebar.style.removeProperty('opacity');
setTimeout(() => {
this.sidebar.style.removeProperty('transition');