thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.08k stars 127 forks source link

Provide a padding on top when in panel mode #108

Closed DeepCoreSystem closed 3 years ago

DeepCoreSystem commented 3 years ago

I have a view where I want to use the layout-card. The view is in panel mode and the contained cards are snug to the upper bar. grafik

The 'problem' lies here: https://github.com/thomasloven/lovelace-layout-card/blob/90bcb7f1561056b4a7584ee6b33a3ca7a4f08181/layout-card.js#L40-L45

If I remove line 44, I get the result I want: grafik

thomasloven commented 3 years ago

This should be fixed with 2.0.0. Please confirm.

eiiot commented 3 years ago

I have a view where I want to use the layout-card. The view is in panel mode and the contained cards are snug to the upper bar. grafik

The 'problem' lies here:

https://github.com/thomasloven/lovelace-layout-card/blob/90bcb7f1561056b4a7584ee6b33a3ca7a4f08181/layout-card.js#L40-L45

If I remove line 44, I get the result I want: grafik

I'm trying to figure out how to get this kind of spacing. What did you do to add the spacing in the first place?