diff --git a/src/managers/NavigationManager.ts b/src/managers/NavigationManager.ts index a9f86b6..4fdc1fb 100644 --- a/src/managers/NavigationManager.ts +++ b/src/managers/NavigationManager.ts @@ -200,6 +200,9 @@ export class NavigationManager { return; } + // Reset all-day height BEFORE creating new grid to ensure base height + const root = document.documentElement; + root.style.setProperty('--all-day-row-height', '0px'); let newGrid: HTMLElement; @@ -243,10 +246,6 @@ export class NavigationManager { newGrid.style.position = 'relative'; newGrid.removeAttribute('data-prerendered'); - // Reset all-day height and remove hardcoded header height after slide animation - const root = document.documentElement; - root.style.setProperty('--all-day-row-height', '0px'); - // Update state this.currentWeek = new Date(targetWeek); this.animationQueue--;