Adds month view design and styling
Introduces basic month view structure and styling with week numbers. Creates expanded month view with event details and duration-based sizing. Moves event color handling to CSS classes for better flexibility and theming.
This commit is contained in:
parent
0ea4e47324
commit
18c12cd3e6
8 changed files with 1735 additions and 15 deletions
|
|
@ -71,8 +71,7 @@ export abstract class BaseEventRenderer implements EventRendererStrategy {
|
|||
eventElement.style.top = `${position.top + 1}px`;
|
||||
eventElement.style.height = `${position.height - 1}px`;
|
||||
|
||||
// Set color
|
||||
eventElement.style.backgroundColor = event.metadata?.color || '#3498db';
|
||||
// Color is now handled by CSS classes based on data-type attribute
|
||||
|
||||
// Format time for display
|
||||
const startTime = this.dateCalculator.formatTime(new Date(event.start));
|
||||
|
|
@ -89,7 +88,7 @@ export abstract class BaseEventRenderer implements EventRendererStrategy {
|
|||
console.log(`BaseEventRenderer: Created event element for "${event.title}":`, {
|
||||
top: eventElement.style.top,
|
||||
height: eventElement.style.height,
|
||||
backgroundColor: eventElement.style.backgroundColor,
|
||||
dataType: eventElement.dataset.type,
|
||||
position: eventElement.style.position,
|
||||
innerHTML: eventElement.innerHTML
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue