jcwillox / lovelace-canary

🐤 Adds many useful extensions to lovelace, such as templating secondary info, stacking within a card and more!
MIT License
103 stars 4 forks source link

Header of the stack has no background when title is defined #5

Closed bieniu closed 4 years ago

bieniu commented 4 years ago

When vertical-stack card has a title definied and the in_stack: true option is used, the header of the stack has no backgroud.

image

Configuration:

- type: vertical-stack
  title: "Kuchnia"
  in_card: true
  cards:
    - type: glance
      show_name: false
      entities:
        - sensor.temperature_kuchnia
        - sensor.humidity_kuchnia
    - type: entities
      show_header_toggle: false
      state_color: true
      entities:
        - binary_sensor.window_kuchnia
        - entity: sensor.dishwasher_kuchnia
jcwillox commented 4 years ago

Yes, it appears this is something I missed originally, it currently only encapsulates the child cards within the ha-card element, the title is left outside and so doesn't have a background.

I agree you would assume that the header is given a background as well, I think I assumed that if people wanted they could just add a title to the top card in the stack, in your case you could add the title to the glance card.

jcwillox commented 4 years ago

This has been fixed in the latest release 0.3.0 👍