Skip to content

Commit

Permalink
Adding Votes (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keboo committed Jul 14, 2023
1 parent c63987d commit 875bcfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PointerStar/Client/Pages/Room.razor
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
{
var count = group.Count();
double percentage = count / (double)votes.Length;
string text = $"{(string.IsNullOrWhiteSpace(group.Key) ? "" : group.Key)} - {count} ({percentage:P0})";
string text = $"{(string.IsNullOrWhiteSpace(group.Key) ? "" : group.Key)} - {count} Votes ({percentage:P0})";
Typo textSize = count == maxVote ? Typo.body1 : Typo.body2;
string barStyle = $"background-color: var({(count == maxVote ? "--mud-palette-primary-darken" : "--mud-palette-primary-lighten")});";
<MudText Typo="@textSize">@text</MudText>
Expand Down

0 comments on commit 875bcfc

Please sign in to comment.