diff --git a/src/components/week_view.rs b/src/components/week_view.rs index 881fcf5..e8b279f 100644 --- a/src/components/week_view.rs +++ b/src/components/week_view.rs @@ -773,6 +773,7 @@ fn calculate_event_position(event: &CalendarEvent, date: NaiveDate) -> (f32, f32 let start_minute = local_start.minute() as f32; let start_pixels = (start_hour + start_minute / 60.0) * 60.0; // 60px per hour + // Calculate duration and height let duration_pixels = if let Some(end) = event.end { let local_end = end.with_timezone(&Local); diff --git a/styles.css b/styles.css index d8cfdb3..4ea2266 100644 --- a/styles.css +++ b/styles.css @@ -759,9 +759,7 @@ body { } /* Event resize zones and handles */ -.week-event { - position: relative; -} +/* Remove position: relative to allow absolute positioning for correct event placement */ .week-event .event-content { padding: 2px;