1
0
mirror of synced 2024-11-28 00:20:53 +01:00

Add vh sizing to title table

This should allow the entire dialog to be visible when browser is at least ~540px in height.
This commit is contained in:
shiibe 2022-09-15 11:43:27 -04:00
parent e93bf5bb44
commit 30e681ba02
2 changed files with 2 additions and 4 deletions

View File

@ -23,7 +23,7 @@
<MudDataGridPager T="Title"/> <MudDataGridPager T="Title"/>
</PagerContent> </PagerContent>
</MudDataGrid>*@ </MudDataGrid>*@
<MudTable Items="@titles" Filter="@Filter" @bind-SelectedItem="@selectedTitle"> <MudTable Items="@titles" Filter="@Filter" @bind-SelectedItem="@selectedTitle" Height="40vh">
<ColGroup> <ColGroup>
<col style="width: 150px;" /> <col style="width: 150px;" />
<col /> <col />
@ -32,8 +32,6 @@
<col style="width: 150px;" /> <col style="width: 150px;" />
</ColGroup> </ColGroup>
<ToolBarContent> <ToolBarContent>
<MudText Typo="Typo.h6">Built in titles</MudText>
<MudSpacer/>
<MudTextField @bind-Value="searchString" Placeholder="Search" Adornment="Adornment.Start" Immediate="true" <MudTextField @bind-Value="searchString" Placeholder="Search" Adornment="Adornment.Start" Immediate="true"
AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium" Class="mt-0"> AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium" Class="mt-0">
</MudTextField> </MudTextField>

View File

@ -86,7 +86,7 @@ public partial class Profile
{ {
["UserSetting"] = response ["UserSetting"] = response
}; };
var dialog = DialogService.Show<ChooseTitleDialog>("Choose a built in dialog", parameters, options); var dialog = DialogService.Show<ChooseTitleDialog>("Player Titles", parameters, options);
var result = await dialog.Result; var result = await dialog.Result;
if (!result.Cancelled) if (!result.Cancelled)
{ {