vasqued2 / ha-teamtracker-card

A Home Assistant frontend custom card that will display real-time updates for teams tracked with the ha-teamtracker integration. Has custom in-game layouts for football, baseball, basketball, hockey, soccer, golf, tennis, racing, and mma.
GNU General Public License v3.0
75 stars 16 forks source link

[FR] add colon or dash in result divider for POST Game view #114

Closed schmierlappe closed 2 weeks ago

schmierlappe commented 4 weeks ago

Is it possible to add a colon or dash into the divider to have more regular Result view especially for Soccer in the POST Game View?

like this

image

vasqued2 commented 3 weeks ago

Depending on the sport, scores can be negative or be positions so the '-' doesn't look right for them.

The card is designed to be fully compatible with card-mod and you should be able to accomplish what you are looking for with it. That's one on the reasons I made it compatible is so anyone can modify it in any way they want without changes to the card itself. If you have any problems doing what you want to do with card-mod, let me know.

Here's an example:

type: custom:teamtracker-card
entity: sensor.zui_tt_atp
show_league: true
card_mod:
  style: |
    .divider {
        visibility: visible;
    }
    .divider::after {
        visibility: visible;
        content: "-\00a0\00a0\00a0";
        white-space: nowrap;
        display: inline-block;
    }
schmierlappe commented 3 weeks ago

ok nice, I will test it

vasqued2 commented 2 weeks ago

Assumed this worked and closing