custom-cards / bar-card

Customizable Animated Bar card for Home Assistant Lovelace
MIT License
378 stars 54 forks source link

Layout gotten larger with newer versions #74

Closed fribse closed 4 years ago

fribse commented 4 years ago

Hey there

I love the bar card, and I've built an overview of the battery states of devices. But the later versions has made the layout a bit weird, and I can't figure out what's going on. I must have missed a change somewhere.

It now looks like this: image The space between the bars is not supposed to be there :-)

The code looks like this:

card:
  align: left
  columns: 2
  padding: 2px
  positions:
    icon: 'off'
    name: inside
  severity:
    - color: '#bf4040'
      value: 10
    - color: '#bf9540'
      value: 30
    - color: '#40bf40'
      value: 100
  title_position: inside
  title_style:
    font-size: 16px
  type: 'custom:bar-card'
  value_style:
    font-size: 8px
filter:
  exclude:
    - entity_id: '*mobil*'
    - entity_id: '*h8*'
  include:
    - entity_id: '*_battery'
    - entity_id: '*_battery_level'
type: 'custom:auto-entities'

Any input on what I've missed?

Gluwc commented 4 years ago

Are you using this inside a horizontal stack or panel view?

fribse commented 4 years ago

The 'full layout' looks like this: image

It's in a panel view with three columns in a horizontal stack, so both :-)

I removed these three lines as they seem to be obsolote, but so far no change:

  title_position: inside
  title_style:
    font-size: 16px
Gluwc commented 4 years ago

Should be fixed in 3.1.6.

fribse commented 4 years ago

WOW, that was fast! And yes, it's solved!