From 63e7ed21a4ce2859a56a58109f433727f57dc7a8 Mon Sep 17 00:00:00 2001 From: Wendelin <12148533+wendevlin@users.noreply.github.com> Date: Thu, 27 Nov 2025 16:57:42 +0100 Subject: [PATCH] Fix lab automations icons and sidebar width (#28184) Co-authored-by: Petar Petrov --- src/components/ha-icon.ts | 1 + .../ha-automation-add-items.ts | 12 ++++++++---- .../types/ha-automation-condition-platform.ts | 4 ++++ .../trigger/types/ha-automation-trigger-platform.ts | 4 ++++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/components/ha-icon.ts b/src/components/ha-icon.ts index 5016e38c6a..37e32cbc17 100644 --- a/src/components/ha-icon.ts +++ b/src/components/ha-icon.ts @@ -186,6 +186,7 @@ export class HaIcon extends LitElement { static styles = css` :host { + display: flex; fill: currentcolor; } `; diff --git a/src/panels/config/automation/add-automation-element/ha-automation-add-items.ts b/src/panels/config/automation/add-automation-element/ha-automation-add-items.ts index 7e31cb32c6..51657ff86c 100644 --- a/src/panels/config/automation/add-automation-element/ha-automation-add-items.ts +++ b/src/panels/config/automation/add-automation-element/ha-automation-add-items.ts @@ -306,7 +306,7 @@ export class HaAutomationAddItems extends LitElement { .items .item-headline { display: flex; align-items: center; - gap: var(--ha-space-1); + gap: var(--ha-space-2); min-height: var(--ha-space-9); flex-wrap: wrap; } @@ -366,12 +366,16 @@ export class HaAutomationAddItems extends LitElement { } .selected-target state-badge { - --mdc-icon-size: 20px; + --mdc-icon-size: 24px; } .selected-target state-badge, - .selected-target ha-domain-icon { + .selected-target ha-floor-icon { + display: flex; + height: 32px; width: 24px; - height: 24px; + align-items: center; + } + .selected-target ha-domain-icon { filter: grayscale(100%); } `; diff --git a/src/panels/config/automation/condition/types/ha-automation-condition-platform.ts b/src/panels/config/automation/condition/types/ha-automation-condition-platform.ts index 9a9f442e73..27ca52003b 100644 --- a/src/panels/config/automation/condition/types/ha-automation-condition-platform.ts +++ b/src/panels/config/automation/condition/types/ha-automation-condition-platform.ts @@ -393,6 +393,10 @@ export class HaPlatformCondition extends LitElement { } static styles = css` + :host { + display: block; + margin: 0px calc(-1 * var(--ha-space-4)); + } ha-settings-row { padding: 0 var(--ha-space-4); } diff --git a/src/panels/config/automation/trigger/types/ha-automation-trigger-platform.ts b/src/panels/config/automation/trigger/types/ha-automation-trigger-platform.ts index 12c0f0611f..4952793a5a 100644 --- a/src/panels/config/automation/trigger/types/ha-automation-trigger-platform.ts +++ b/src/panels/config/automation/trigger/types/ha-automation-trigger-platform.ts @@ -429,6 +429,10 @@ export class HaPlatformTrigger extends LitElement { } static styles = css` + :host { + display: block; + margin: 0px calc(-1 * var(--ha-space-4)); + } ha-settings-row { padding: 0 var(--ha-space-4); }