diff --git a/src/panels/config/automation/manual-automation-editor.ts b/src/panels/config/automation/manual-automation-editor.ts index af9b6d51c1..755f7b639a 100644 --- a/src/panels/config/automation/manual-automation-editor.ts +++ b/src/panels/config/automation/manual-automation-editor.ts @@ -85,6 +85,7 @@ export class HaManualAutomationEditor extends LitElement { )} .value=${this.config.mode ? MODES.indexOf(this.config.mode) : 0} @selected=${this._modeChanged} + fixedMenuPosition > ${MODES.map( (mode) => html` @@ -317,6 +318,9 @@ export class HaManualAutomationEditor extends LitElement { ha-entity-toggle { margin-right: 8px; } + mwc-select { + margin-top: 8px; + } `, ]; } diff --git a/src/panels/config/automation/trigger/types/ha-automation-trigger-device.ts b/src/panels/config/automation/trigger/types/ha-automation-trigger-device.ts index 43ddbeeb14..82ee809f72 100644 --- a/src/panels/config/automation/trigger/types/ha-automation-trigger-device.ts +++ b/src/panels/config/automation/trigger/types/ha-automation-trigger-device.ts @@ -1,4 +1,4 @@ -import { html, LitElement } from "lit"; +import { css, html, LitElement } from "lit"; import { customElement, property, state } from "lit/decorators"; import memoizeOne from "memoize-one"; import { fireEvent } from "../../../../../common/dom/fire_event"; @@ -150,6 +150,13 @@ export class HaDeviceTrigger extends LitElement { `ui.panel.config.automation.editor.triggers.type.device.extra_fields.${schema.name}` ) || schema.name; } + + static styles = css` + ha-device-picker { + display: block; + margin-bottom: 8px; + } + `; } declare global {