Working all day

This commit is contained in:
Janus Knudsen 2025-08-05 00:17:17 +02:00
parent c164975494
commit 7ac7e0f7f8
2 changed files with 6 additions and 14 deletions

View file

@ -338,9 +338,9 @@ export class GridManager {
* Update spacer heights based on all-day events presence
*/
private updateSpacerHeights(): void {
const allDayEventCount = this.allDayEvents.length;
const eventHeight = 20; // Height per all-day event in pixels
const padding = 4; // Top/bottom padding
const allDayEventCount = 1;
const eventHeight = 26; // Height per all-day event in pixels
const padding = 0; // Top/bottom padding
const allDayHeight = allDayEventCount > 0 ? (allDayEventCount * eventHeight) + padding : 0;
// Set CSS variable for dynamic spacer height