when display: none is set to the state-badge. I was kind of hoping the action would be set on the card, (like with custom:button-card) and not on the main entity. So, if we want an action to be happening we are forced to keep that state-badge, and get a higher card because of that
so, in this case the display: none actually only does the same as show_state: false (commented because also tested) and does Not āreleaseā the space of that element to the card.
Could we some how force the card to be āfilledā from the right side?
all the more remarkable, because on mobile this works nicely, and filling the full width:
Because it has no 100% width and only takes the size it is needing, left aligned. If you set width 100% to the .entities-row it could be, that it is directly as you want. But you should see this if you click arround on the elements in developer tools, too.
which is exactly what I am looking for was expecting based on the docs examples. Unfortunately we can now clearly see the name space is not released, going to the mobile display of the row:
You should describe what you want. If you want it right aligned with minimum space or distributed over the whole line. Without this, this is too much trial and error.
is what I am after yes. Bigger problem seems to be I can not get mobile And desktop to behave like that with the same config.
I wrote āwhat I am looking forā in that post, because I was indeed looking for the reason why the card didnt do what I expected it to do, fill from the right. (Iāve edited that post)
As I have established now, that is caused by the card_mod styling on the .info
So, cut it short, I like an icon, no name, several icons spread evenly over the space next to the icon, and no closing state on the right.
Ill limit the number of entities to what can be displayed correctly on mobile, as that space seems more limited than 1 column on desktop, and doesnt get resized, but overflows.
I had to push the padding a bit, because otherwise too much space would be on the left.
changing the justify-content does not seem to make things better (I feel there is too much whitespace between the entities now on desktop (see above). Mobile is better but even there the justify could improveā¦
so many optionsā¦
update
had to add !important to overwrite the card option for justify-content:
Like your status and sharing of it. But I would suggest to place all this in card-mod theme thread, where you find more audience and where it better belongs to.