Thanks for explaining how to do it for specific elements,
I dont know if you missed my reply above but it seems your original solution worked, the issue was actually firefox specifically (must be the way the CSS is loaded) because there is no problem on Chrome.
Interestingly if i spam refresh FF a few times I CAN get it to work properly until the next refresh. but that is likely a FF issue rather than a HA issue that I probably cant solve
With this force style inject to dialog, you can test firefox whether the problem is the style processing from Theme, or also directly in the dialog element. I donāt know if you have the card_mod plugin via resources, or in the frontend config as extra_module_url. Setting it as extra_module I think sometimes helps with better plugin functionality.
in my themes.yaml, is that what you are referring to?
When I CAN get it to load correctly in firefox, it shows 2 of the :host([card]) .content .container , 1 constructed and 1 inline. presumably the one inline is from the themes as it is correct (0px padding) but the constructed one leads nowhere and Im not sure where it actually comes from (if i click the link it opens an empty style editor page wheres the inline shows the themes style info)
Im guessing if there is 2 identical styles and they potentially load in different orders, i get a different result?
I honestly did not care about the initial FR.
But since the 1st PR was made (and approved) - wanted to improve it (or at least to fix glitches). So, this is a new (hopefully better) reality.
Why it is written in this thread?
These changes may affect current styles somehow.
The āhui-generic-entity-rowā is a part of many custom cards (fold-entity-row, multiple-entity-row). Letās hope that nothing will be broken. If it would - get ready to fix it by card-mod (or wait for the pluginsā authors).
Thanks Ildar - that would probably explain why template-entity-row with secondary info now have an overlarge gap between primary and secondary lines after upgrade to 2025.2 betas:
1st we must finalize the current design for a standard entity row.
And hopefully none change would be needed for custom cards.
If needed - then weāll inform Thomas.
I have tried for two days to get an icon to change color depending on state of a sensor, and I canāt get it to work. Can someone hint in the right direction?