Improves all-day event row height calculation

Ensures consistent all-day event row height calculation across CSS and TypeScript.

The all-day event row height calculation is adjusted by removing redundant container padding from the TypeScript constant and synchronizing the CSS variable with the event height.

Additionally, the layout engine is directly tested in the test file for better coverage.
This commit is contained in:
Janus C. H. Knudsen 2025-10-02 01:03:35 +02:00
parent a1e1c5d185
commit f2ad13776f
5 changed files with 58 additions and 53 deletions

View file

@ -18,6 +18,7 @@
--header-height: 80px;
--all-day-row-height: 0px; /* Default height for all-day events row */
--all-day-event-height: 26px; /* Height of single all-day event including gaps */
--single-row-height: 28px; /* Height of single row in all-day container - synced with TypeScript */
--stack-levels: 1; /* Number of stack levels for all-day events */
/* Time boundaries - Default fallback values */