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:
parent
a1e1c5d185
commit
f2ad13776f
5 changed files with 58 additions and 53 deletions
|
|
@ -13,7 +13,7 @@ export const ALL_DAY_CONSTANTS = {
|
|||
EVENT_GAP: 2, // Gap between stacked events
|
||||
CONTAINER_PADDING: 4, // Container padding (top + bottom)
|
||||
get SINGLE_ROW_HEIGHT() {
|
||||
return this.EVENT_HEIGHT + this.EVENT_GAP + this.CONTAINER_PADDING; // 28px
|
||||
return this.EVENT_HEIGHT + this.EVENT_GAP; // 28px
|
||||
}
|
||||
} as const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue