thomasloven / lovelace-state-switch

🔹Dynamically replace lovelace cards depending on occasion
MIT License
382 stars 27 forks source link

Do not use space if no card is displayed #7

Closed RomRider closed 4 years ago

RomRider commented 5 years ago

If no card is displayed, state-switch is using 8px total (4 on top and 4 on bottom). This should fix it.

pergolafabio commented 4 years ago

@RomRider

i tested your PR, but i still have extra space when no card is displayed look here screenshot => between those 2 cards, there is state-switch thats not displayed but it creates an extra space ...

i have lots of those cards; so its fillin up with spaces

any idea?

https://www.dropbox.com/s/511dr2z7y92zizb/state-switch.JPG?dl=0