diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-08-27 17:41:32 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-08-27 17:41:32 +0200 |
commit | 49a5735e07e7868195590a13c247698aaa1c5358 (patch) | |
tree | 30647b9b3cb25d8548e66757785f0b64cdf73490 /web/pw-server/src/lib/components/matches/MatchList.svelte | |
parent | c80ce332791c94b83a03c9f7c3cbb937f474cc5d (diff) | |
download | planetwars.dev-49a5735e07e7868195590a13c247698aaa1c5358.tar.xz planetwars.dev-49a5735e07e7868195590a13c247698aaa1c5358.zip |
show map info for matches
Diffstat (limited to 'web/pw-server/src/lib/components/matches/MatchList.svelte')
-rw-r--r-- | web/pw-server/src/lib/components/matches/MatchList.svelte | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/pw-server/src/lib/components/matches/MatchList.svelte b/web/pw-server/src/lib/components/matches/MatchList.svelte index 01a0b82..e38543e 100644 --- a/web/pw-server/src/lib/components/matches/MatchList.svelte +++ b/web/pw-server/src/lib/components/matches/MatchList.svelte @@ -16,6 +16,7 @@ <th /> <th /> <th class="col-player-2">player 2</th> + <th class="col-map">map</th> </tr> {#each matches as match} <tr class="match-table-row" on:click={() => goto(match_url(match))}> @@ -38,6 +39,9 @@ <td class="col-player-2"> {match["players"][1]["bot_name"]} </td> + <td class="col-map"> + {match["map"]?.name || ""} + </td> </tr> {/each} </table> @@ -84,6 +88,10 @@ text-align: left; } + .col-map { + text-align: right; + } + .matches-table { margin: 12px auto; border-collapse: collapse; |