From 11cea8541bf67d57d08ffcb0a3475e681e92d377 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Thu, 1 Dec 2022 16:02:01 +0200 Subject: [PATCH] Add variable for v3 button size --- lovelace/button_card_templates/v3/primitives/v3_button.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lovelace/button_card_templates/v3/primitives/v3_button.yaml b/lovelace/button_card_templates/v3/primitives/v3_button.yaml index 917b9c0..44d6146 100644 --- a/lovelace/button_card_templates/v3/primitives/v3_button.yaml +++ b/lovelace/button_card_templates/v3/primitives/v3_button.yaml @@ -6,14 +6,14 @@ v3_button: show_state: true show_icon: true show_name: true - size: 120px + size: var(--v3-button-size, 120px) card_size: 2 hold_action: action: more-info styles: card: - - width: 120px - - height: 120px + - width: var(--v3-button-size, 120px) + - height: var(--v3-button-size, 120px) - box-shadow: none - --ha-card-background: "[[[ return variables.background_color ]]]" icon: