1
0
mirror of synced 2025-02-21 04:56:33 +01:00

Swap Rank and Crown position on Leaderboard table

This commit is contained in:
shiibe 2024-06-05 17:33:18 -04:00
parent d206aaff47
commit 8fcd7a1057

View File

@ -49,8 +49,8 @@
<MudTh>@Localizer["Rank"]</MudTh>
<MudTh>@Localizer["Player"]</MudTh>
<MudTh>@Localizer["Score"]</MudTh>
<MudTh>@Localizer["Rank"]</MudTh>
<MudTh>@Localizer["Crown"]</MudTh>
<MudTh>@Localizer["Rank"]</MudTh>
</HeaderContent>
<RowTemplate>
<MudTd>@context.Rank</MudTd>
@ -61,6 +61,9 @@
</MudStack>
</MudTd>
<MudTd>@context.BestScore</MudTd>
<MudTd>
<img src="@($"/images/crown_{context.BestCrown}.png")" alt="@(ScoreUtils.GetCrownText(context.BestCrown))" title="@(ScoreUtils.GetCrownText(context.BestCrown))" style="@Constants.ICON_STYLE"/>
</MudTd>
<MudTd>
@if (context.BestScoreRank is not ScoreRank.None)
{
@ -71,9 +74,6 @@
<MudText Typo="Typo.body1">—</MudText>
}
</MudTd>
<MudTd>
<img src="@($"/images/crown_{context.BestCrown}.png")" alt="@(ScoreUtils.GetCrownText(context.BestCrown))" title="@(ScoreUtils.GetCrownText(context.BestCrown))" style="@Constants.ICON_STYLE"/>
</MudTd>
</RowTemplate>
<PagerContent>
@if (TotalPages > 1)