Skip to content

Commit 63e7ed2

Browse files
Fix lab automations icons and sidebar width (#28184)
Co-authored-by: Petar Petrov <[email protected]>
1 parent 92611f4 commit 63e7ed2

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

src/components/ha-icon.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ export class HaIcon extends LitElement {
186186

187187
static styles = css`
188188
:host {
189+
display: flex;
189190
fill: currentcolor;
190191
}
191192
`;

src/panels/config/automation/add-automation-element/ha-automation-add-items.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export class HaAutomationAddItems extends LitElement {
306306
.items .item-headline {
307307
display: flex;
308308
align-items: center;
309-
gap: var(--ha-space-1);
309+
gap: var(--ha-space-2);
310310
min-height: var(--ha-space-9);
311311
flex-wrap: wrap;
312312
}
@@ -366,12 +366,16 @@ export class HaAutomationAddItems extends LitElement {
366366
}
367367
368368
.selected-target state-badge {
369-
--mdc-icon-size: 20px;
369+
--mdc-icon-size: 24px;
370370
}
371371
.selected-target state-badge,
372-
.selected-target ha-domain-icon {
372+
.selected-target ha-floor-icon {
373+
display: flex;
374+
height: 32px;
373375
width: 24px;
374-
height: 24px;
376+
align-items: center;
377+
}
378+
.selected-target ha-domain-icon {
375379
filter: grayscale(100%);
376380
}
377381
`;

src/panels/config/automation/condition/types/ha-automation-condition-platform.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ export class HaPlatformCondition extends LitElement {
393393
}
394394

395395
static styles = css`
396+
:host {
397+
display: block;
398+
margin: 0px calc(-1 * var(--ha-space-4));
399+
}
396400
ha-settings-row {
397401
padding: 0 var(--ha-space-4);
398402
}

src/panels/config/automation/trigger/types/ha-automation-trigger-platform.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ export class HaPlatformTrigger extends LitElement {
429429
}
430430

431431
static styles = css`
432+
:host {
433+
display: block;
434+
margin: 0px calc(-1 * var(--ha-space-4));
435+
}
432436
ha-settings-row {
433437
padding: 0 var(--ha-space-4);
434438
}

0 commit comments

Comments
 (0)