fix(referto): mostra i nomi delle squadre al posto delle etichette A/B
L'header e la tabella del risultato finale usavano segnaposto generici "A"/"B"; ora indicano esplicitamente casa/ospiti e i nomi reali delle squadre.
This commit is contained in:
+4
-4
@@ -130,7 +130,7 @@ export function buildRefertoHtml(state, now = new Date()) {
|
|||||||
.meta { font-size: 11px; color: #333; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
|
.meta { font-size: 11px; color: #333; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
|
||||||
|
|
||||||
.squadre-row { display: flex; align-items: center; gap: 14px; }
|
.squadre-row { display: flex; align-items: center; gap: 14px; }
|
||||||
.badge-ab { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #111; font-weight: bold; font-size: 12px; flex-shrink: 0; }
|
.badge-ab { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 8px; border-radius: 11px; border: 2px solid #111; font-weight: bold; font-size: 12px; flex-shrink: 0; }
|
||||||
.nome-sq { font-size: 18px; font-weight: bold; }
|
.nome-sq { font-size: 18px; font-weight: bold; }
|
||||||
.vs { font-size: 12px; color: #666; font-weight: bold; }
|
.vs { font-size: 12px; color: #666; font-weight: bold; }
|
||||||
|
|
||||||
@@ -181,11 +181,11 @@ export function buildRefertoHtml(state, now = new Date()) {
|
|||||||
<div class="meta">${dataOra} · Modalità: ${modalitaPartita}</div>
|
<div class="meta">${dataOra} · Modalità: ${modalitaPartita}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="squadre-row">
|
<div class="squadre-row">
|
||||||
<span class="badge-ab">A</span>
|
<span class="badge-ab">Casa</span>
|
||||||
<span class="nome-sq">${nomi.home}</span>
|
<span class="nome-sq">${nomi.home}</span>
|
||||||
<span class="vs">vs</span>
|
<span class="vs">vs</span>
|
||||||
<span class="nome-sq">${nomi.guest}</span>
|
<span class="nome-sq">${nomi.guest}</span>
|
||||||
<span class="badge-ab">B</span>
|
<span class="badge-ab">Ospiti</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ export function buildRefertoHtml(state, now = new Date()) {
|
|||||||
<div class="finale-box">
|
<div class="finale-box">
|
||||||
<div class="finale-box-header">Risultato finale</div>
|
<div class="finale-box-header">Risultato finale</div>
|
||||||
<table class="finale-tabella">
|
<table class="finale-tabella">
|
||||||
<thead><tr><th>Set</th><th>A</th><th>B</th></tr></thead>
|
<thead><tr><th>Set</th><th>${nomi.home}</th><th>${nomi.guest}</th></tr></thead>
|
||||||
<tbody>${risultatoSetHtml}</tbody>
|
<tbody>${risultatoSetHtml}</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="finale-vince">Vince ${setVinti.home >= setVinti.guest ? nomi.home : nomi.guest} ${setVinti.home} – ${setVinti.guest}</div>
|
<div class="finale-vince">Vince ${setVinti.home >= setVinti.guest ? nomi.home : nomi.guest} ${setVinti.home} – ${setVinti.guest}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user