Hey! I’m the author of MeteoalarmCard and recently I have added the ability to hide the card from the interface when it is not displaying anything useful. The thing that I have tried is just rendering empty string:
return html``;
and it indeed doesn’t display the card but still keeps the default card margin
The problem is although nothing is rendered HA still adds default margin to card
The red box shows the space where custom cards can really operate and the meteoalarm-card
container can’t be easily accessed.
The currently used solution is a very sketchy injection to hide the whole card element
And it indeed it works as expected. The thing is, as you can imagine, it’s just a buggy mess that’s pain to work with.
So, my question is, is there any proper way to remove this margin? I just feel like card developers should have some easier way to interact with this parent element.