thomasloven / lovelace-card-mod

đŸ”¹ Add CSS styles to (almost) any lovelace card
MIT License
1.16k stars 168 forks source link

Error in "horizontal-stack" even using "custom: mod-card" #109

Closed ricardoquecria closed 3 years ago

ricardoquecria commented 3 years ago

My Home Assistant version: 5.11

My lovelace configuration method (GUI or yaml): YAML

What I am doing: I understand the problems related to the "horizontal-stack" card. However, it worked as I expected using the "custom: mod-card", but not anymore.

What I expected to happen: Version 2.0.3 image

What happened instead: Version 3.0.4 image

Minimal steps to reproduce:

# The least amount of code possible to reproduce my error
- type: custom:mod-card
  card:
    type: horizontal-stack
    cards:

      - type: button
        tap_action:
          action: toggle
        entity: input_boolean.campainha

      - type: button
        tap_action:
          action: toggle
        entity: input_boolean.campainha

      - type: button
        tap_action:
          action: toggle
        entity: input_boolean.campainha

  card_mod:
    style: |
      ha-card {
        margin: 30px 10px 30px 10px;
      }

# End of code

By putting an X in the boxes ([]) below, I indicate that I:

thomasloven commented 3 years ago

I love me a good, clear bug report. Thank you!