using a plain entities card with
footer:
type: buttons
entities:
- entity: input_boolean.loop_sound_bite
name: Loop Soundbite
- entity: script.play_sound_bite
name: Speel soundbite
icon: mdi:play
and a card_mod_theme for the footers system wide like
card-mod-card-yaml: |
hui-buttons-header-footer $ hui-buttons-base:
$ : |
.ha-scrollbar {
justify-content: space-evenly;
height: 50px;
align-content: center;
margin: -8px 0px 0px 0px;
--ha-chip-background-color: var(--primary-color);
--ha-chip-text-color: var(--card-background-color);
--paper-item-icon-active-color: red;
--secondary-text-color: var(--card-background-color);
}
hui-buttons-header-footer $ hui-buttons-base $ .ha-scrollbar ha-chip:
$: |
.mdc-chip {
border: 1px solid green;
border-radius: var(--ha-card-border-radius) !important;
}
.mdc-chip__ripple {
border-radius: var(--ha-card-border-radius) !important;
}
made the buttons in the footer appear in style and center them if more than 1.
currently on new card_mod 3.2.3 and HA 2023.10 beta 6 I am seeing the mod become a bit unstable (seems not to kick in on reload, and require a view reload), and, it does not apply the justify-content: space-evenly correctly, even if I add !important there.
after a reload of theme, seems the mod does not work at all:
next I reload frontend:
and styles are applied with the exception of the space-evenly.
do we need new/different settings nowadays?