Yes, and I seemingly am not looking in the right places or getting the syntax right if I am.
Tried asking Bard and Bing AI but they were equally as useless as myself
I am giving up on that test and trying to go for something simpler: entities card.
I checked the examples by Ildar but could not find an option there or in dev tools to minimize the spaces between entities.
The distance between the scripts/automations is quite big. I would happily go without the icons, too. But mainly I want to make the card as tight as possible.
padding and margin did not seem to solve it or I did not find the right place to do so.
Anybody know if it is possible?
You will see same w/o auto-entities as well.
That example was for “one row of type” case.
1st post → link … → other → important notes about navigation
Use this
If you select/cklick on the input-element, is the css of the style part look like the two arrows at the bottom of my screenshot, so is the style is applied?
Basis for this is, that the sytle is ingested correctly ar right spot. Blue arrows.
Ah, sorry perhaps I missed the !important in my posting, which you can see in my screenshot as well. Try to add it as well.
Ildar, I am a bit stuck.
Marius tried helping me on Discord and he had a cool approach for cards that are more similar to each other where you use the options section of auto-entities.
But I am trying to use your approach with the generic rows.
However, I habe not been able to omplement if expressions.
Do you know why the if expression for color does not work there and if there is a fix for this?
It is the same approach as it would be in options using states(config.entity).
Ofc, it will not work ))). config.entity is defined on a row level!
I do not think there is any reason to use “style a row from a card’s level” in case of using “auto-entities”. It is only worth using in a “normal” Entities card to avoid repeating a code for each row. And even in this case i would not recommend it. Use yaml-anchors etc for EACH row, do not try to save your time with this “style a row from a card’s level” way.
Although many people using
color: {% if ... %} red {% else %} blue {% endif %};
syntax, I never do it and never recommend people doing it.
This one is better:
Using the Bubble Card (Popup), layout card, and card_mod I have these “blank spots” for lack of a better term. I cannot for the life of me figure out what to modify to make them go away. Basically you make a vertical stack and the bubble card “hides” it until you ask for the popup. That all works fine, except at the bottom of my layout there is blank area. Trying to use card_mod to get rid of it but cannot seem to figure out what to modify.
I tried using show: hidden in the layout card, but that makes the popup not work. Using dev tools I set the element.style: margin to 0 and that seemed to make them vanish. But I can’t seem to get it with card_mod.
My first attempt at using card mod works, sort-of. I’m trying to modify a horizontal stack card to reduce the left pane to 25% and increase the right to 75%. When I reload HA, it’s a normal horizontal stack card with two squares. I have to click Edit Dashboard and then the card immediately looks like I want it to be. The same goes on mobile, where it’s initially two squares until I rotate the phone and then rotate it back. What do I need to change? Code and screenshots: