thanks for getting back to me.
in fact I haven’t, other than on the entity itself, the button-cards are very plain, and only use your templates as posted.
I’ve also carefully checked if I dont use any templates with the same name myself, which happened in another spot
Just checked, and Firefox looks identical to Safari. Only Chrome shows the animated icons…
wait: I had edited the base: template and commented some code that I didnt use (screensaver, galaxy etc) but apparently commented too much. now looking like:
which is much better. Interesting to learn once again that not all browsers are equal… not sure why it shows the ‘unknown’ s yet, but that should be easy to fix fixed… wrong entity_id’s duh…
I solved it with a template sensor returning different icons if the entity is on or off and included the entity as tap_action to that template sensor button.
Does anybody have problems with swiper-card and conditional-card? Accessing my Dashboard for the first time this weird visual error occurs, if i reload or change to another and back to that dashboard it seems fine Any ideas?
First off, thanks @Mattias_Persson for sharing your work/design here. it has really helped me as a framework to work from to learn how lovelace UI works.
I have gotten stuck on 1 part, I was hoping someone here could help me. Its more CSS related but hopefully someone here knows the answer.
im trying to change how the gridlayout works for a particular card. I figured the simplest way to do this is to create a new button_card_template, that references the “base” template and change the grid layout. that seemed to work but i cant figure out what to change to get what i want.
for the bottom right tile, the text is “sync bedrooms” it is too long and gets truncated to “sync bedro…” I wanted the text to wrap onto the next line. I dont need the state displayed, it can be hidden as it is just a toggle switch and i will show the state by modifying the icon displayed.
this is what i have tried (code snippet for above image)
I assumed by change the last row of the grid would allow the text to occupy the whole area, but it didnt work. i tried a variety of settings like change grid template columns and rows etc. but never got good results. ideally it would be proportioned exactly like the others. (the “n” refer to name, and “s” to the entity state right?)
like the media swiper-card, yes i tried. But then i do have a empty horizontal-stack in the first swiper-card Any idea, what could cause this visual bug?
like the media swiper-card, yes i tried. But then i do have a empty horizontal-stack in the first swiper-card Any idea, what could cause this visual bug?
I also get a weird bug if im using swipe-card for a single grid button:
sure, the thing i want is to show the entity-picuter only if the sensor is on. If not i just want to have the normal grid-buttons. Maybe i need to talk to the swiper-card people, cause probably its a specific card problem. If im using swiper-card in the grid-card the size is not working right.
Or do you have any other ideas? Thanks you!