Skip to content

Commit

Permalink
fix for delay color
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Jung committed Jan 13, 2025
1 parent 269bf3a commit a610a73
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/ha-departures-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-departures-card.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/departures-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ export class DeparturesRow extends LitElement {
return nothing
}

const delayed = this._delay >= 0
const sign = delayed ? "+" : "-"
const delayed = this._delay > 0
const sign = this._delay >=0 ? "+" : "-"

return html`<span class="delay" delayed=${delayed}>(${sign}${this._delay})</span>`
return html`<span class="delay" ?delayed=${delayed}>(${sign}${this._delay})</span>`
}
}

0 comments on commit a610a73

Please sign in to comment.