Refactor Calendar component to simplify view selection UI
This commit removes the Month and Day button group from the Calendar component, streamlining the user interface. The change enhances the overall layout and focuses on the MudCalendar display, improving user experience by reducing visual clutter. This update aligns with the ongoing efforts to refine component interactions and maintain a clean UI.
This commit is contained in:
@@ -34,16 +34,6 @@
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
<MudStack Spacing="2">
|
<MudStack Spacing="2">
|
||||||
<MudButtonGroup Variant="Variant.Outlined" Size="Size.Small">
|
|
||||||
<MudButton Color="@(_currentView == CalendarView.Month ? Color.Primary : Color.Default)"
|
|
||||||
OnClick="() => { _currentView = CalendarView.Month; StateHasChanged(); }">
|
|
||||||
Month
|
|
||||||
</MudButton>
|
|
||||||
<MudButton Color="@(_currentView == CalendarView.Day ? Color.Primary : Color.Default)"
|
|
||||||
OnClick="() => { _currentView = CalendarView.Day; StateHasChanged(); }">
|
|
||||||
Day
|
|
||||||
</MudButton>
|
|
||||||
</MudButtonGroup>
|
|
||||||
|
|
||||||
<MudCalendar T="CalendarItemWrapper"
|
<MudCalendar T="CalendarItemWrapper"
|
||||||
Items="_calendarItems"
|
Items="_calendarItems"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
Color="Color.Primary"
|
Color="Color.Primary"
|
||||||
OnClick="OpenSaveHistoryDialog"
|
OnClick="OpenSaveHistoryDialog"
|
||||||
Disabled="@(!_scheduledTeams.Any())">
|
Disabled="@(!_scheduledTeams.Any())">
|
||||||
Save as History
|
Save to History
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
<PageNoteButton PageIdentifier="Meeting Schedule" />
|
<PageNoteButton PageIdentifier="Meeting Schedule" />
|
||||||
|
|||||||
Reference in New Issue
Block a user