Since 2025.5.x my dashboards, the button cards in particular have increased the spacing between lines so that what used to fit inside a button no longer fits. I was hoping this was something that would work itself out in 2025.5.2, but it has not. So far, my fix has been to keep reverting back to 2025.4.4 to avoid having to fix/create all my dashboards. I have yet to see an option for spacing or condensed spacing in new releases.
Is this something that will be addressed and fixed, or is this a permanent change I’ll have to deal with?
Thanks.
Suggest you to post a SIMPLE SHORT MINIMAL code to reproduce your issue and a picture with description what was changed.
Will do.
2025.4.4 (before upgrade to 2025.5.1 or 2025.5.2):
show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: switch.coffee_maker
icon: mdi:coffee-maker-outline
grid_options:
columns: 3
rows: 2
show_state: true
show_name: true
show_icon: true
type: button
tap_action:
action: toggle
grid_options:
columns: 3
rows: 2
entity: automation.garage_motion_lights
show_state: true
icon: mdi:motion-sensor
After 2025.5.1 or 2025.5.2:
show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: switch.coffee_maker
icon: mdi:coffee-maker-outline
grid_options:
columns: 3
rows: 2
show_state: true
show_name: true
show_icon: true
type: button
tap_action:
action: toggle
grid_options:
columns: 3
rows: 2
entity: automation.garage_motion_lights
show_state: true
icon: mdi:motion-sensor
These are just two examples. No change in the code, but the spacing on the button changed.
I see. Probably it could be related to deprecation of paper-variables, here it could be a line-height css property. Suggest you to create an issue in GitHub (if it is not there already).
Cannot test myself, away from PC.