Make song title a fixed width
This commit is contained in:
parent
a43484ac13
commit
437b9818d6
@ -30,12 +30,12 @@
|
|||||||
@if (songBestDataMap.ContainsKey(difficulty))
|
@if (songBestDataMap.ContainsKey(difficulty))
|
||||||
{
|
{
|
||||||
<MudDataGrid Items="@songBestDataMap[difficulty]"
|
<MudDataGrid Items="@songBestDataMap[difficulty]"
|
||||||
ColumnResizeMode="ResizeMode.Container" RowsPerPage="25" Elevation="0">
|
ColumnResizeMode="ResizeMode.None" RowsPerPage="25" Elevation="0">
|
||||||
<Columns>
|
<Columns>
|
||||||
<Column T="SongBestData" Field="@nameof(SongBestData.SongId)" Title="Song" StickyLeft="true" CellStyle="min-width:400px;">
|
<Column T="SongBestData" Field="@nameof(SongBestData.SongId)" Title="Song" StickyLeft="true">
|
||||||
<CellTemplate>
|
<CellTemplate>
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center" Style="width:100%">
|
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
|
||||||
<div>
|
<div style="width:300px">
|
||||||
<MudText Typo="Typo.body2" Style="font-weight:bold">@context.Item.MusicName</MudText>
|
<MudText Typo="Typo.body2" Style="font-weight:bold">@context.Item.MusicName</MudText>
|
||||||
<MudText Typo="Typo.caption">@context.Item.MusicArtist</MudText>
|
<MudText Typo="Typo.caption">@context.Item.MusicArtist</MudText>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user