Closed urielz closed 2 years ago
Did you try to put place-items: stretch
in the layout options ? Or place-self: stretch
in the view_layout:
section of the c11
card if you want only that one to stretch ? That should be the default AFAICT, but maybe your setup changes that.
A vanilla media player card obeys this stretching, so maybe it is a case of mini-player-card
having some kind of outer container (that would be stretched by the grid) and an inner one that doesn't follow along. In that case you probably can use card-mod
to fix it.
Similarly, the vanilla weather
card does stretch, but the Météo France one (forked from the animated meteo card) doesn't. Using
card_mod:
style: 'ha-card { height: 100%; box-sizing: border-box; }'
Fixed the meteo card for me. You may be able to do a similar tweak for your mini-player-card
I honestly don't know if this is a bug or a feature that has not been implemented. Or perhaps, more likely, my lack of understanding of how CSS grid works.
My Home Assistant version: 2021.08.8
Layout-card version (FROM BROWSER CONSOLE): 2.3.0
What I am doing: Using grid-layout
What I expected to happen: Have a layout without gaps
What happened instead: Significant gaps between cards (see image)
Minimal steps to reproduce:
Error messages from the browser console: None
By putting an X in the boxes ([X]) below, I indicate that I: