Refactor Calendar component to adjust default meeting times and improve event item styling

This commit updates the Calendar component by changing the default start time for meetings to 9:00 AM and the end time to 5:01 PM, ensuring better alignment with typical work hours. Additionally, the styling of calendar event items is refined by removing fixed width and height properties, allowing for more flexible rendering. These changes enhance the usability and visual presentation of the calendar feature, contributing to an improved user experience.
This commit is contained in:
2026-01-26 22:15:03 -05:00
parent d0ce71397b
commit 46836fde2e
3 changed files with 19 additions and 9 deletions
+4 -4
View File
@@ -30,9 +30,9 @@ public class CalendarMeetingItem : CalendarItem
MeetingHistoryData = meetingHistory;
// Set base class properties that the calendar component uses
Text = "Team Meeting";
// Use meeting date at 3:00 PM as default time
Start = meetingHistory.MeetingDate.Date.AddHours(15);
// Default to 1 hour duration
End = Start.AddHours(1);
// Set start to 9:00 AM on the meeting date
Start = meetingHistory.MeetingDate.Date.AddHours(9);
// Set end to 5:00 PM on the meeting date (5:01 PM to ensure it displays until 5pm if end is exclusive)
End = meetingHistory.MeetingDate.Date.AddHours(17).AddMinutes(1);
}
}