From e6a153a802c190bd4cb6c1fa7ef75633a82c8cd7 Mon Sep 17 00:00:00 2001 From: Brynley McDonald Date: Tue, 29 Nov 2022 00:48:08 +1300 Subject: [PATCH] Add margin to the device automation form (#14418) --- .../action/types/ha-automation-action-device_id.ts | 7 ++++++- .../condition/types/ha-automation-condition-device.ts | 4 ++++ .../trigger/types/ha-automation-trigger-device.ts | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/panels/config/automation/action/types/ha-automation-action-device_id.ts b/src/panels/config/automation/action/types/ha-automation-action-device_id.ts index a9bb544b73..f4cf9cf800 100644 --- a/src/panels/config/automation/action/types/ha-automation-action-device_id.ts +++ b/src/panels/config/automation/action/types/ha-automation-action-device_id.ts @@ -150,11 +150,16 @@ export class HaDeviceAction extends LitElement { static styles = css` ha-device-picker { display: block; - margin-bottom: 16px; + margin-bottom: 24px; } + ha-device-action-picker { display: block; } + + ha-form { + margin-top: 24px; + } `; } diff --git a/src/panels/config/automation/condition/types/ha-automation-condition-device.ts b/src/panels/config/automation/condition/types/ha-automation-condition-device.ts index 8e70db6f1e..6e7234ed26 100644 --- a/src/panels/config/automation/condition/types/ha-automation-condition-device.ts +++ b/src/panels/config/automation/condition/types/ha-automation-condition-device.ts @@ -159,6 +159,10 @@ export class HaDeviceCondition extends LitElement { display: block; margin-bottom: 24px; } + + ha-form { + margin-top: 24px; + } `; } 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 22207e1f3f..05f422e976 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 @@ -162,6 +162,10 @@ export class HaDeviceTrigger extends LitElement { display: block; margin-bottom: 24px; } + + ha-form { + margin-top: 24px; + } `; }