Just updated to latest version 2021.12.1
I notice that my Entities card with a single button which has always been centered is now aligned to the left. How can i get this back to centre please?
Thank you, will keep that in mind. Don’t really want another bespoke configuration just to get a single button back in the center where it always has been.
But should I add more buttons like this and want same behaviour I will certainly go this route. Appreciate the help.
For first sight I thought not really this was I asked for, as I would like to use some generic method without any explicit &ref, *ref references, but interestingly your solution works without them, like…
Honestly I simply do not understand the syntax, so why we have to catch the hui-buttons-row as topmost element, and what the two $ before and after the hui-buttons-base mean, but maybe someday I will get it.
Use Code Inspector to determine a correct path.
These &ref are yaml anchors: there are plenty of same buttons and same rows, these anchors are to reduce a code.
Just for the report, now it seems that I can understand those shadow-root elements and the working method of the card-mod injections also. Sadly - if I’m right - it not makes overrides just extensions, so if there is already explicit CSS definitions we can not override them, but we can search for any creative way to extend them with our requirements. I’m not a sitebuild wizard so just tried to scratch the very top of these things, and I wrote what I wrote as I had a hard fight with the already available margin-left definition on the ha-chips in entities card, buttons row, without texts, where the icon is not perfectly horizontally centered, but at the end with a very ugly explicit left definition I could play out it.
Thanks for your help, I simply just slipped over it when I searched for it.
As I wrote I could also avoid of the usage of &ref/*ref references. With proper path definition I could catch the required elements of multiple objects.