fix: LED digits individually spaced — fixes '2 1:00' gap in DSEG7 font
Build & Deploy Tippspiel / build (push) Successful in 51s
Build & Deploy Tippspiel / build (push) Successful in 51s
This commit is contained in:
@@ -81,9 +81,13 @@ export default function DashboardPage(_props: Props) {
|
||||
<span className={styles.heroTeamName}>{hero.match.homeTeam.shortName}</span>
|
||||
</div>
|
||||
|
||||
{/* Center: LED time */}
|
||||
{/* Center: LED time — each digit fixed-width for even spacing */}
|
||||
<div className={styles.heroCenter}>
|
||||
<span className={styles.heroLED}>{formatKickoff(hero.match.utcDate)}</span>
|
||||
<span className={styles.heroLED}>
|
||||
{formatKickoff(hero.match.utcDate).split('').map((ch, i) => (
|
||||
<span key={i} className={ch === ':' ? styles.ledColon : styles.ledDigit}>{ch}</span>
|
||||
))}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className={styles.heroTeam}>
|
||||
|
||||
Reference in New Issue
Block a user