kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.06k stars 237 forks source link

fix: indicator style for the 1st state #1105

Closed ildar170975 closed 6 months ago

ildar170975 commented 6 months 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 6 months 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 6 months 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 6 months ago

Thanks a lot!

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 0.12.2-dev.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: