diff --git a/src/components/ha-service-control.ts b/src/components/ha-service-control.ts index ee1692e567..438adb66d4 100644 --- a/src/components/ha-service-control.ts +++ b/src/components/ha-service-control.ts @@ -471,6 +471,7 @@ export class HaServiceControl extends LitElement { } ha-settings-row { --paper-time-input-justify-content: flex-end; + --settings-row-content-width: 100%; border-top: var( --service-control-items-border-top, 1px solid var(--divider-color) @@ -489,9 +490,6 @@ export class HaServiceControl extends LitElement { margin: var(--service-control-padding, 0 16px); padding: 16px 0; } - :host(:not([narrow])) ha-settings-row ha-selector { - width: 60%; - } .checkbox-spacer { width: 32px; } diff --git a/src/components/ha-settings-row.ts b/src/components/ha-settings-row.ts index a28738b265..252bb80dc8 100644 --- a/src/components/ha-settings-row.ts +++ b/src/components/ha-settings-row.ts @@ -21,7 +21,7 @@ export class HaSettingsRow extends LitElement {
- +
`; } @@ -43,6 +43,18 @@ export class HaSettingsRow extends LitElement { ); flex: 1; } + .content { + display: contents; + } + :host(:not([narrow])) .content { + display: flex; + justify-content: flex-end; + flex: 1; + padding: 16px 0; + } + .content ::slotted(*) { + width: var(--settings-row-content-width); + } :host([narrow]) { align-items: normal; flex-direction: column; diff --git a/src/panels/config/automation/blueprint-automation-editor.ts b/src/panels/config/automation/blueprint-automation-editor.ts index 907ee3bb03..37b08264de 100644 --- a/src/panels/config/automation/blueprint-automation-editor.ts +++ b/src/panels/config/automation/blueprint-automation-editor.ts @@ -326,12 +326,9 @@ export class HaBlueprintAutomationEditor extends LitElement { } ha-settings-row { --paper-time-input-justify-content: flex-end; + --settings-row-content-width: 100%; border-top: 1px solid var(--divider-color); } - :host(:not([narrow])) ha-settings-row ha-textfield, - :host(:not([narrow])) ha-settings-row ha-selector { - width: 60%; - } `, ]; } diff --git a/src/panels/lovelace/components/hui-card-options.ts b/src/panels/lovelace/components/hui-card-options.ts index aef797e278..7e34b16c70 100644 --- a/src/panels/lovelace/components/hui-card-options.ts +++ b/src/panels/lovelace/components/hui-card-options.ts @@ -116,7 +116,7 @@ export class HuiCardOptions extends LitElement { outline: 2px solid var(--primary-color); } - :host:not(.panel) ::slotted(*) { + :host(:not(.panel)) ::slotted(*) { display: block; }