Hi all, quick one. I would like to take this button and make it only the 1/3 of the overall width of the card, but the word the other 2/3. How can I achieve this?
I tried this on the header, but it did the opposite of what I wanted (ie 1/3 then 2/3). Where did I go wrong? Thanks!
type: custom:mod-card
card_mod:
style:
hui-horizontal-stack-card $: |
hui-button-card:nth-of-type(1) {
flex-grow: 2 !important;
}
hui-button-card:nth-of-type(2) {
flex-grow: 1 !important;
}
card:
type: horizontal-stack
cards:
- type: custom:mushroom-title-card
title: Bedroom
- type: button
entity: light.bedroom
icon_height: 40px
show_name: false
tap_action:
action: toggle
show_state: false