Add bolding to season schedule

This commit is contained in:
Peter 2024-11-01 10:42:32 -05:00
parent e3aeea1e7b
commit 4fc3cd7344

View File

@ -28,7 +28,8 @@
<tr v-for="game in matchup" :key="game.id">
<td>
<RouterLink
:to="{ name: 'team', params: { seasonNumber: seasonNumber, teamAbbreviation: game.away_team.abbrev } }">
:to="{ name: 'team', params: { seasonNumber: seasonNumber, teamAbbreviation: game.away_team.abbrev } }"
:style="{ 'font-weight': game.away_score > game.home_score ? 'bold' : 'normal' }">
{{ game.away_team.abbrev }}
</RouterLink>
</td>
@ -41,7 +42,8 @@
</td>
<td>
<RouterLink
:to="{ name: 'team', params: { seasonNumber: seasonNumber, teamAbbreviation: game.home_team.abbrev } }">
:to="{ name: 'team', params: { seasonNumber: seasonNumber, teamAbbreviation: game.home_team.abbrev } }"
:style="{ 'font-weight': game.home_score > game.away_score ? 'bold' : 'normal' }">
{{ game.home_team.abbrev }}
</RouterLink>
</td>