nicer formatting
This commit is contained in:
parent
5e65765be1
commit
876df286e3
1 changed files with 8 additions and 7 deletions
|
@ -30,12 +30,12 @@ fn Scoreboard() -> impl IntoView {
|
|||
view! {
|
||||
<Show when=move || { game_meta().is_some() }>
|
||||
<span class="absolute top-0 right-0">
|
||||
<p>Players:</p>
|
||||
<table class="min-w-full border border-collapse table-auto">
|
||||
<table class="min-w-full table-auto">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="border-b">Name</th>
|
||||
<th class="border-b">Score</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th>"Score"</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{game_meta()
|
||||
|
@ -45,14 +45,15 @@ fn Scoreboard() -> impl IntoView {
|
|||
.map(|player| {
|
||||
view! {
|
||||
<tr>
|
||||
<td class="text-center border-b">
|
||||
<td>
|
||||
{if game_meta().unwrap().czar == player.name {
|
||||
"👑 "
|
||||
} else {
|
||||
""
|
||||
}} {player.name}
|
||||
}}
|
||||
</td>
|
||||
<td class="text-center border-b">{player.score}</td>
|
||||
<td>{player.name}</td>
|
||||
<td class="text-center">{player.score}</td>
|
||||
</tr>
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue