Refactors all-day event layout tracking logic

Removes redundant state tracking for all-day event layouts

Shifts from maintaining internal layout state to reading directly from DOM elements
Simplifies event handling and updates by using DOM as the source of truth
Improves performance by reducing unnecessary state management
This commit is contained in:
Janus C. H. Knudsen 2025-11-11 18:08:48 +01:00
parent 4cc110d9f2
commit 2656bae054
3 changed files with 83 additions and 67 deletions

File diff suppressed because one or more lines are too long

View file

@ -197,6 +197,11 @@ swp-calendar-header {
gap: 2px 0px;
align-items: center;
overflow: hidden;
/* Border only when events exist */
&:has(swp-allday-event) {
border-bottom: 1px solid var(--color-grid-line);
}
}
}