kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.85k stars 231 forks source link

fix: indicator style for the 1st state #1105

Closed ildar170975 closed 1 month ago

ildar170975 commented 1 month ago

Consider the code:

type: custom:mini-graph-card
entities:
  - entity: sensor.xiaomi_cg_1_co2
    show_state: true
    show_indicator: true
  - entity: sensor.xiaomi_cg_2_co2
    show_state: true
    show_indicator: true
  - entity: sensor.mijia_300_1_co2
    show_state: true
    show_indicator: true
name: xxx

Currently an indicator for the 1st state is misaligned & square:

изображение

After the fix:

изображение

ildar170975 commented 1 month ago

@akloeckner Have no idea why - but the PR contains some other changes as well: изображение although I only proposed changes in style.js.

akloeckner commented 1 month ago

It's because I didn't pull the release-related commits into dev. I did that now.

I'll fix the semantic PR title and merge. 👍

ildar170975 commented 1 month ago

Thanks a lot!