feat: better table formatting

This commit is contained in:
eneller
2025-03-12 22:57:53 +01:00
parent 3d3a177b7c
commit 29633a94c0
3 changed files with 15 additions and 9 deletions

View File

@@ -1,8 +1,3 @@
<style>
*{
text-align: center;
}
</style>
<main class="main">
<div class="row justify-content-md-center">
<h1>Please select the number of teams:</h1>
@@ -40,7 +35,7 @@
<button type="button" (click)="onButtonGenerate(playerNames.value)" class="btn btn-primary">Generate</button>
</form>
<table class="table table-striped">
<table class="table table-striped custom-table">
<thead>
<tr>
<th scope="col">Size</th>
@@ -50,8 +45,8 @@
<tbody>
@for (team of teamsArray; track $index) {
<tr>
<td>{{ team.length | number }}</td>
<td>{{ team }}</td>
<td style="text-wrap: wrap;">{{ team.length | number }}</td>
<td class="wrap-cell">{{ team }}</td>
</tr>
}
</tbody>