From 876df286e3ed6cf2ae3990bb93aabc0a709df158 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Fri, 30 Aug 2024 01:29:09 -0400 Subject: [PATCH] nicer formatting --- client/src/components/game/header.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/client/src/components/game/header.rs b/client/src/components/game/header.rs index 6ecfbe4..7b0ac1b 100644 --- a/client/src/components/game/header.rs +++ b/client/src/components/game/header.rs @@ -30,12 +30,12 @@ fn Scoreboard() -> impl IntoView { view! { -

Players:

- +
- - + + + {game_meta() @@ -45,14 +45,15 @@ fn Scoreboard() -> impl IntoView { .map(|player| { view! { - - + + } })
NameScore"Score"
+ {if game_meta().unwrap().czar == player.name { "👑 " } else { "" - }} {player.name} + }} {player.score}{player.name}{player.score}