This commit is contained in:
Janus C. H. Knudsen 2025-09-23 23:51:21 +02:00
parent 32894cca82
commit e20e23651c

View file

@ -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--;