small steps

This commit is contained in:
Janus Knudsen 2025-08-04 23:31:08 +02:00
parent 42901212da
commit e37b3d7004
2 changed files with 13 additions and 17 deletions

View file

@ -255,14 +255,16 @@ export class GridManager {
weekHeader.appendChild(header);
});
// Add orange header sections in row 2
const headerSectionLeft = document.createElement('swp-header-section-left');
headerSectionLeft.textContent = 'Left Section';
weekHeader.appendChild(headerSectionLeft);
// Add all-day events in row 2
const allDayEventLeft = document.createElement('swp-allday-event');
allDayEventLeft.textContent = 'Left Section';
allDayEventLeft.style.gridColumn = '1 / 3'; // Span columns 1-2
weekHeader.appendChild(allDayEventLeft);
const headerSectionRight = document.createElement('swp-header-section-right');
headerSectionRight.textContent = 'Right Section';
weekHeader.appendChild(headerSectionRight);
const allDayEventRight = document.createElement('swp-allday-event');
allDayEventRight.textContent = 'Right Section';
allDayEventRight.style.gridColumn = '3 / 8'; // Span columns 3-7
weekHeader.appendChild(allDayEventRight);
// Update spacer heights based on all-day events
this.updateSpacerHeights();