Skip to content

Commit d3267f4

Browse files
committed
add scopes
1 parent 06937f5 commit d3267f4

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/components/round/SoloBoardOverviewModal.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<table class="table table-bordered table-sm solo-board-table">
55
<thead>
66
<tr>
7-
<th>{{t('soloBoardOverview.playerTurns')}}</th>
8-
<th v-for="turn in turns" :key="turn" class="turnCount">{{turn}}</th>
7+
<th scope="row">{{t('soloBoardOverview.playerTurns')}}</th>
8+
<th v-for="turn in turns" :key="turn" class="turnCount" scope="col">{{turn}}</th>
99
</tr>
1010
</thead>
1111
<tbody>
1212
<tr v-for="floorActions in sortedFloorActions" :key="floorActions.floor">
13-
<td class="fw-bold floor-cell">{{floorActions.floor}}</td>
13+
<th class="floor-cell" scope="row">{{floorActions.floor}}</th>
1414
<td v-for="turn in turns" :key="turn" class="cell"
1515
:class="{active: turn === playerTurns && floorActions.floor === playerDeliveryFloor}">
1616
<CellContent :floorAction="floorActions.floorAction[turn]" :floor="floorActions.floor"/>
@@ -19,8 +19,8 @@
1919
</tbody>
2020
<tfoot>
2121
<tr class="bot-card-row">
22-
<th class="fw-bold">{{t('soloBoardOverview.botCards')}}</th>
23-
<th v-for="turn in turns" :key="turn">
22+
<th class="fw-bold" scope="row">{{t('soloBoardOverview.botCards')}}</th>
23+
<th v-for="turn in turns" :key="turn" scope="col">
2424
{{soloBoard.botCardCount[turn]}}
2525
</th>
2626
</tr>
@@ -78,6 +78,8 @@ export default defineComponent({
7878
th, td {
7979
border-color: #000;
8080
text-align: center;
81+
vertical-align: middle;
82+
height: 3rem;
8183
}
8284
thead th {
8385
background-color: #e7c5de;
@@ -91,10 +93,6 @@ export default defineComponent({
9193
background-color: #abd8aa;
9294
}
9395
}
94-
th, td {
95-
vertical-align: middle;
96-
height: 3rem;
97-
}
9896
.floor-cell {
9997
background-color: #f0f0f0;
10098
width: 3rem;

0 commit comments

Comments
 (0)