Browse Source

Fix button behavior when the screen is small

pull/2738/head
joncrall 7 months ago
parent
commit
3824c912d8
No known key found for this signature in database
GPG Key ID: BE04D092BDD81C0D
  1. 14
      ErsatzTV/Shared/MediaCardPager.razor

14
ErsatzTV/Shared/MediaCardPager.razor

@ -62,13 +62,23 @@ @@ -62,13 +62,23 @@
<div style="flex: 1; display: flex; justify-content: flex-end;">
@if (SelectAllOnPage is not null)
{
<div class="d-none d-md-flex" style="margin-left:auto">
<MudButton Variant="Variant.Filled"
Color="Color.Primary"
Disabled="@(CanSelectAllOnPage?.Invoke() != true)"
StartIcon="@Icons.Material.Filled.SelectAll"
OnClick="@(_ => SelectAllOnPage())">
Disabled="@(CanSelectAllOnPage is null || !CanSelectAllOnPage())"
OnClick="@(_ => SelectAllOnPage?.Invoke())">
Select All
</MudButton>
</div>
<div class="d-md-none" style="margin-left:auto; display:flex; align-items:center;">
<MudMenu Icon="@Icons.Material.Filled.MoreVert">
<MudMenuItem Icon="@Icons.Material.Filled.SelectAll"
Label="Select All"
Disabled="@(CanSelectAllOnPage is null || !CanSelectAllOnPage())"
OnClick="@(_ => SelectAllOnPage?.Invoke())" />
</MudMenu>
</div>
}
</div>
</div>

Loading…
Cancel
Save