Skip to content

Commit

Permalink
Fix series info on PRE and IN cards
Browse files Browse the repository at this point in the history
  • Loading branch information
vasqued2 committed Oct 8, 2024
1 parent b8e6e1d commit bb5553e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/ha-teamtracker-card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ha-teamtracker-card.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/const.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export let VERSION = "v0.14.12";
export let VERSION = "v0.14.13";

export let GOLF_HEADSHOT_URL = "https://a.espncdn.com/i/headshots/golf/players/full/";
export let MMA_HEADSHOT_URL = "https://a.espncdn.com/i/headshots/mma/players/full/";
Expand Down
2 changes: 1 addition & 1 deletion src/render_in.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function renderIn(c) {
<div class="on-base" style=${styleMap({"--on-base-opacity": `${c.onFirstOp}`})}>&bull;</div>
</div>
<div class="outs" style=${styleMap({"--outs-display": `${c.outsDisplay}`})}>${c.in0}</div>
<div class="in-series-info" style=${styleMap({"--series_summary-display": `${c.seriesSummaryDisplay}`})}>${c.seriesSummary}</div>
<div class="in-series-info" style=${styleMap({"--series-summary-display": `${c.seriesSummaryDisplay}`})}>${c.seriesSummary}</div>
<div class="line"></div>
<a class="bottom-clickable ${!c.bottomURL ? 'disabled' : ''}" href="${c.bottomURL ? c.bottomURL : '#'}" target="_blank">
<div class="in-row1">
Expand Down
2 changes: 1 addition & 1 deletion src/render_pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function renderPre(c) {
</a>
</div>
</div>
<div class="pre-series-info" style=${styleMap({"--series_summary-display": `${c.seriesSummaryDisplay}`})}>${c.seriesSummary}</div>
<div class="pre-series-info" style=${styleMap({"--series-summary-display": `${c.seriesSummaryDisplay}`})}>${c.seriesSummary}</div>
<div class="line"></div>
<a class="bottom-clickable ${!c.bottomURL ? 'disabled' : ''}" href="${c.bottomURL ? c.bottomURL : '#'}" target="_blank">
<div class="pre-row1">
Expand Down
2 changes: 1 addition & 1 deletion src/set_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export function setDefaults(t, lang, stateObj, c, o, sport, team, oppo) {

c.seriesSummary = stateObj.attributes.series_summary;
if (c.seriesSummary) {
c.seriesSummaryDisplay= "inherit";
c.seriesSummaryDisplay= "block";
}
}

Expand Down

0 comments on commit bb5553e

Please sign in to comment.