Fix add condition default tab and blank styles (#28166)

This commit is contained in:
Wendelin 2025-11-27 12:18:21 +01:00 committed by GitHub
parent 50fcf622aa
commit ef3e8186bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -294,10 +294,7 @@ class DialogAddAutomationElement
feature.domain === "automation" &&
feature.preview_feature === "new_triggers_conditions"
)?.enabled ?? false;
this._tab =
this._newTriggersAndConditions && this._params?.type !== "condition"
? "targets"
: "groups";
this._tab = this._newTriggersAndConditions ? "targets" : "groups";
}
);

View File

@ -273,7 +273,7 @@ export class HaAutomationAddItems extends LitElement {
align-items: center;
color: var(--ha-color-text-secondary);
padding: var(--ha-space-0);
margin: var(--ha-space-3) var(--ha-space-4)
margin: var(--ha-space-0) var(--ha-space-4)
max(var(--safe-area-inset-bottom), var(--ha-space-3));
line-height: var(--ha-line-height-expanded);
justify-content: center;