Skip to content

Commit 6ccd3d3

Browse files
authored
Tweak choose spacing (home-assistant#26702)
1 parent 5709cb6 commit 6ccd3d3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/panels/config/automation/action/types/ha-automation-action-choose.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ export class HaChooseAction extends LitElement implements ActionElement {
5151
5252
${this._showDefault || action.default
5353
? html`
54-
<h2>
54+
<h4>
5555
${this.hass.localize(
5656
"ui.panel.config.automation.editor.actions.type.choose.default"
5757
)}:
58-
</h2>
58+
</h4>
5959
<ha-automation-action
6060
.actions=${ensureArray(action.default) || []}
6161
.disabled=${this.disabled}

src/panels/config/automation/option/ha-automation-option-row.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export default class HaAutomationOptionRow extends LitElement {
203203
hidden: this._collapsed,
204204
})}
205205
>
206-
<h4>
206+
<h4 class="conditions">
207207
${this.hass.localize(
208208
"ui.panel.config.automation.editor.actions.type.choose.conditions"
209209
)}:
@@ -216,7 +216,7 @@ export default class HaAutomationOptionRow extends LitElement {
216216
@value-changed=${this._conditionChanged}
217217
.optionsInSidebar=${this.optionsInSidebar}
218218
></ha-automation-condition>
219-
<h4>
219+
<h4 class="actions">
220220
${this.hass.localize(
221221
"ui.panel.config.automation.editor.actions.type.choose.sequence"
222222
)}:
@@ -414,6 +414,13 @@ export default class HaAutomationOptionRow extends LitElement {
414414
li[role="separator"] {
415415
border-bottom-color: var(--divider-color);
416416
}
417+
h4.conditions {
418+
margin-top: 0;
419+
margin-bottom: 8px;
420+
}
421+
h4.actions {
422+
margin-bottom: 8px;
423+
}
417424
`,
418425
];
419426
}

0 commit comments

Comments
 (0)