From f09f57c3ddc57bb52854ec8b42c28eb96071ac9e Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Sat, 30 Aug 2025 09:06:17 +0200 Subject: [PATCH] UI changes --- Client/Pages/Index.razor | 6 +++--- Client/Pages/Index.razor.cs | 30 ------------------------------ 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/Client/Pages/Index.razor b/Client/Pages/Index.razor index ddb4aac..5c1aee9 100644 --- a/Client/Pages/Index.razor +++ b/Client/Pages/Index.razor @@ -7,9 +7,9 @@
- - - + + +
diff --git a/Client/Pages/Index.razor.cs b/Client/Pages/Index.razor.cs index cec5bb3..b771e92 100644 --- a/Client/Pages/Index.razor.cs +++ b/Client/Pages/Index.razor.cs @@ -322,35 +322,5 @@ namespace ShiftScheduler.Client.Pages Shifts = await HttpClient.GetFromJsonAsync>("api/shift/shifts") ?? new(); StateHasChanged(); } - - // Helper method to group days by week for desktop calendar view - // Each week starts with Monday and ends with Sunday - private List> GetWeeksInMonth() - { - var days = SelectedDate.DaysInMonth(); - var weeks = new List>(); - var currentWeek = new List(); - - foreach (var day in days) - { - // Start a new week if this is Monday and we have days in current week - if (day.DayOfWeek == DayOfWeek.Monday && currentWeek.Count > 0) - { - weeks.Add(currentWeek); - currentWeek = new List(); - } - - // Add the day to current week - currentWeek.Add(day); - } - - // Add any remaining days as the last week - if (currentWeek.Count > 0) - { - weeks.Add(currentWeek); - } - - return weeks; - } } }