diff --git a/TaikoWebUI/Components/Song/SongLeaderboardCard.razor b/TaikoWebUI/Components/Song/SongLeaderboardCard.razor index bdd852e..b45a0f4 100644 --- a/TaikoWebUI/Components/Song/SongLeaderboardCard.razor +++ b/TaikoWebUI/Components/Song/SongLeaderboardCard.razor @@ -44,7 +44,7 @@ } else { - + @Localizer["Rank"] @Localizer["Player"] diff --git a/TaikoWebUI/Components/Song/SongLeaderboardCard.razor.cs b/TaikoWebUI/Components/Song/SongLeaderboardCard.razor.cs index 3109d4e..825e394 100644 --- a/TaikoWebUI/Components/Song/SongLeaderboardCard.razor.cs +++ b/TaikoWebUI/Components/Song/SongLeaderboardCard.razor.cs @@ -55,4 +55,9 @@ public partial class SongLeaderboardCard response.ThrowIfNull(); isLoading = false; } + + private string GetActiveRowClass(SongLeaderboard leaderboard, int index) + { + return leaderboard.Baid == Baid ? "is-current-user" : ""; + } } \ No newline at end of file diff --git a/TaikoWebUI/wwwroot/style.overrides.css b/TaikoWebUI/wwwroot/style.overrides.css index b9fd513..257d3d7 100644 --- a/TaikoWebUI/wwwroot/style.overrides.css +++ b/TaikoWebUI/wwwroot/style.overrides.css @@ -55,6 +55,16 @@ transform: scale(1.1); } +tr.is-current-user { + background-color: #bad4f5; +} + +tr.is-current-user td, +tr.is-current-user span, +tr.is-current-user p { + font-weight: bold; +} + .lang-menu-item .mud-list-item-icon { min-width: 26px; }