no I havenāt, the only positional mods I use, system wide, are like margin: 0px -16px 0px -16px; sometimes 8 px more or less, but it always works perfectly.
Except for these maps obviously.
What would you suggest? combine this with position: absolute? or only that?
Not sure what you mean with family?
did try object-fit: auto; but none of that seems to have any effect.
The map card section only does show perfectly, so it is an issue displaying that in the entities card stacking itā¦
Not sure if this is of any help, but I had a similar challenge when I created a button-card. Since button-card uses CSS codes like card-mod, it might work with card-mod as well. I wanted to display the entity picture in fullscreen inside the button card (I created this project with it to give you an idea). Which worked, using the following code:
card:
- padding: 0px
- background-color: var(--card-background-off) #the color when there is no artwork, change or remove to use own color
entity_picture:
- height: 100%
- width: 100%
- position: absolute
Perhaps you can use variables like padding: 0px for the card element and height: 100% and width: 100% for the map element with card-mod. Not sure if itās in anyway helpful, but I figured it doesnāt hurt to try.
Thanks, and yes, I did try several of these already, nothing changes anythingā¦ I also tried a custom:stack-in-card, but even there, the Map behaves differently than the other elements.
Since this is all customization, thereās no change any of the HA Devās will care, even though to seems to be an issue with the Map cardās propertiesā¦ at least as far as all tried options seem to indicate.
You can combine position: absolute and other properties like top, left, bottom, and right to get precise control over positioning. You might also want to use position: relative.
Ok thanks Kendell,
I see. And do use those all over the place in eg the button-cards.
This however seems to be more of a challenge , canāt get anything to do the job.
As said using the Map on its own in the auto- entities works just fine, but stacking it creates the issue.
Since these stack are wide spread in my config , and all are styled for margin, I am rather used to that.
thats why the header is so difficult, and I might be better of using a picture card without entitiesā¦
btw, the bottom off this stack is the full list of quakes (if there are any of course, not now, so empty Map). This is hidden in the fold-entity-row, so poses yet another challenge to get the correct mod-card syntax I still need to find:
@Ildar_Gabdullin would you know if we can style the header picture in this card, and have it fill (probably bottom-margin +24px) to get rid of the white space between it and the header bar (in my image the grey bar with āQuakesā)