Hi,
I would like to have a bit more space between the icon on the button and the primary text. I have tried everything but unfortunately I or chatgpt can’t seem to get this to work. Does anyone know a solution?
This is my current code:
type: custom:mushroom-template-card
primary: Woonkamer
icon: mdi:sofa
layout: vertical
grid_options:
columns: 4
rows: 2
secondary: ""
tap_action:
action: navigate
navigation_path: /db-mobiel2025/woonkamer
hold_action:
action: none
double_tap_action:
action: none
badge_icon: |
{% if is_state('light.woonkamer_tellen', 'on') %}
mdi:lightbulb
{% else %}
mdi:lightbulb-off
{% endif %}
badge_color: |
{% if is_state('light.woonkamer_tellen', 'on') %}
green
{% else %}
black
{% endif %}
card_mod:
style: |
:host {
}
ha-state-icon {
--mdc-icon-size: 64px !important;
}
mushroom-shape-icon {
--shape-color: transparent !important;
--shape-color-disabled: transparent !important;
}
mushroom-badge-icon {
margin-right: -30px;
margin-top: -15px;
--badge-icon-size: 20px;
--badge-size: 30px;
}