Skip to content

Commit

Permalink
Revert "Add buttons to scroll to top or bottom in calendar headers"
Browse files Browse the repository at this point in the history
This reverts commit fb80e186a7cdb1cfaf6e87077077bb31a08a567e.
  • Loading branch information
danielchalmers committed Jan 12, 2024
1 parent b1ec269 commit ebe633f
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions JournalApp/Components/Pages/MoodGrid/MoodGridCalendar.razor
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
@namespace JournalApp
@inject ILogger<MoodGridCalendar> logger
@inject IScrollManager ScrollManager

<div class="mood-grid">
@foreach (var month in GridYear.GridMonths)
{
<div class="mood-grid-month" id="mood-grid-month-@(month.Month)">
<div class="mood-grid-month-header">
<div class="d-flex align-center">
<MudIconButton Icon="@Icons.Material.Filled.ArrowUpward" OnClick="ScrollToTop" title="Scroll to top" />
<MudText Typo="Typo.h4">@(month.Name)</MudText>
<MudIconButton Icon="@Icons.Material.Filled.ArrowDownward" OnClick="ScrollToBottom" title="Scroll to bottom" />
</div>
<MudText Typo="Typo.h4">@(month.Name)</MudText>
</div>

<div class="mood-blocks-month">
Expand Down Expand Up @@ -77,14 +72,4 @@
else
return color;
}

async Task ScrollToTop()
{
await ScrollManager.ScrollToTopAsync(".mud-dialog", ScrollBehavior.Auto);
}

async Task ScrollToBottom()
{
await ScrollManager.ScrollToBottomAsync(".mud-dialog", ScrollBehavior.Auto);
}
}

0 comments on commit ebe633f

Please sign in to comment.