Skip to content

Commit

Permalink
Slight mobile styling tweaks to Infractions and Tags page
Browse files Browse the repository at this point in the history
  • Loading branch information
calledude committed Dec 23, 2023
1 parent 5bf3e08 commit 688d84a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Modix.Web/Components/Infractions.razor
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,16 @@
<MudContainer MaxWidth="MaxWidth.False">


<div class="d-flex mb-1 gap-sm-4 flex-sm-row flex-column align-sm-center">
<div class="d-flex mb-1 gap-sm-4 align-sm-center">
<div class="d-flex flex-sm-row flex-column align-start">
<MudButton Class="ml-1 mb-1" Variant="Variant.Filled" OnClick="ToggleDialog" StartIcon="@Icons.Material.Filled.Create" Color="Color.Primary">Create</MudButton>
<MudButton Class="ml-1" Variant="Variant.Filled" OnClick="RefreshTable" StartIcon="@Icons.Material.Filled.Refresh" Color="Color.Primary">Refresh</MudButton>
</div>
<MudSpacer/>
<MudCheckBox T="bool" Value="_showState" ValueChanged="ShowStateChanged" Label="Show State" Color="Color.Primary" />
<MudCheckBox T="bool" Value="_tableFilter.ShowDeleted" ValueChanged="ShowDeletedChanged" Label="Show Deleted" Color="Color.Primary" />
<div class="d-flex flex-sm-row flex-column">
<MudCheckBox T="bool" Value="_showState" ValueChanged="ShowStateChanged" Label="Show State" Color="Color.Primary" />
<MudCheckBox T="bool" Value="_tableFilter.ShowDeleted" ValueChanged="ShowDeletedChanged" Label="Show Deleted" Color="Color.Primary" />
</div>
</div>

<MudTable @ref="@TableRef" SortLabel="Sort By" Bordered="true" ServerData="LoadInfractions">
Expand Down
2 changes: 1 addition & 1 deletion Modix.Web/Pages/Tags.razor
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</MudDialog>

<div class="d-flex align-sm-center flex-sm-row flex-column my-3">
<div class="d-flex flex-sm-row flex-column align-start">
<div class="d-flex align-start">
<AuthorizeView Context="e" Roles="@nameof(AuthorizationClaim.CreateTag)">
<MudButton Class="mr-1" Variant="Variant.Filled" OnClick="ToggleDialog" StartIcon="@Icons.Material.Filled.Create" Color="Color.Primary">Create</MudButton>
</AuthorizeView>
Expand Down

0 comments on commit 688d84a

Please sign in to comment.