I guess what I was hoping for was something that I would not have to hard code since I use several different devices at different resolutions
All my cards are in a vertical stack. On my 1080p monitor, my 5 button row calculates as 40.89px high. A 3 button row calculates as 70.703px high. If I want all my buttons the same height it can cause things to look disproportionate depending on the devices resolution or if my other button’s are not hard coded.
It would be real nice if width could be specified as a percentage of the row. 2 buttons @ 25% and 1 at 50% for instance. I would imagine that would roughly be the same height as a 4button row, but honestly all this flexbox stuff is new / foreign to me.
For the ones interested, I use this button-card for Homekit style buttons. I have created a dark version as well now just a bit like how ios 13 would handle Homekit:
Hopefully someone can help me with the states functionality.
I have a button that i want to change the MDI Icon as I scroll through the list of “Input_select” options, However the issue i am seeing is that as the button is pressed and the value of the input_select changes, the icon on the button remains the same (I believe, it should change as the value changes with the way i have it configured).
Below is my code, any ideas what i am doing wrong?
The Game1, Game2, Game3 match up exactly to what I have configured in the input_select.yaml and what shows up in the history as I track the states changing.
Custom fields support for your button through the new custom_fields object. This will enable you to define your own fields in the button and apply styles to them without writing hundreds of line of javascript. This is an advanced feature, you’ll have to understand how CSS (and CSS grids) work! You’ll have more control on how to position those fields in the button compared to previously where you only had more or less 2 fields to play with (name and label).
Your custom field content can be plain text or a template [[[ ]]]
Your custom element can be styled also using styles.custom_fields.<ELEMENT_NAME>. See below for examples:
Placing an element wherever you want (that means bypassing the grid). Set the grid to position: relative and set the element to position: absolute