refactor(personajes): reorder capacity table grouped by grade (D→S), rows SS/SPS/BSS per grade, rowspan grouping
CI / Build Native (push) Successful in 6m50s

This commit is contained in:
2026-08-24 10:25:56 -04:00
parent 5d7e6b610e
commit 01f1d9da44
2 changed files with 15 additions and 4 deletions
@@ -979,3 +979,10 @@ header {
footer.container p { footer.container p {
color: #8b5a00; color: #8b5a00;
} }
/* ============================================
CAPACITY TABLE — block separators
============================================ */
.cap-block-divider {
border-top: 2px solid var(--pico-muted-border-color);
}
@@ -176,11 +176,15 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<template x-for="t in shots.TIPOS" :key="'row-' + t"> <template x-for="g in shots.GRADOS" :key="'block-' + g">
<template x-for="g in shots.GRADOS" :key="'cell-' + t + '-' + g"> <template x-for="t in shots.TIPOS" :key="'row-' + t + '-' + g">
<tr> <tr :class="g !== shots.GRADOS[0] && t === shots.TIPOS[0] ? 'cap-block-divider' : ''">
<td class="text-bold" x-text="t"></td> <td class="text-bold" x-text="t"></td>
<td class="text-center"><span class="grade-badge" x-text="g"></span></td> <template x-if="t === shots.TIPOS[0]">
<td :rowspan="shots.TIPOS.length" class="text-center" style="vertical-align: middle;">
<span class="grade-badge" x-text="g"></span>
</td>
</template>
<td class="text-right text-mono" x-text="fmtAdena(shots.referenceCapacity(t, g, 0))"></td> <td class="text-right text-mono" x-text="fmtAdena(shots.referenceCapacity(t, g, 0))"></td>
<td class="text-right text-mono" x-text="fmtAdena(shots.referenceCapacity(t, g, 1))"></td> <td class="text-right text-mono" x-text="fmtAdena(shots.referenceCapacity(t, g, 1))"></td>
<td class="text-right text-mono" x-text="fmtAdena(shots.referenceCapacity(t, g, 2))"></td> <td class="text-right text-mono" x-text="fmtAdena(shots.referenceCapacity(t, g, 2))"></td>