Address feedback of automation editor (#19167)

This commit is contained in:
Bram Kragten 2023-12-28 14:18:18 +01:00 committed by GitHub
parent 5b11e0ce29
commit b180a587bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -46,6 +46,7 @@ export class HaListItem extends ListItemBase {
.mdc-deprecated-list-item__meta { .mdc-deprecated-list-item__meta {
display: var(--mdc-list-item-meta-display); display: var(--mdc-list-item-meta-display);
align-items: center; align-items: center;
flex-shrink: 0;
} }
:host([graphic="icon"]:not([twoline])) :host([graphic="icon"]:not([twoline]))
.mdc-deprecated-list-item__graphic { .mdc-deprecated-list-item__graphic {

View File

@ -67,6 +67,7 @@ export const ACTION_GROUPS: AutomationElementGroup = {
icon: mdiDotsHorizontal, icon: mdiDotsHorizontal,
members: { members: {
event: {}, event: {},
service: {},
}, },
}, },
} as const; } as const;

View File

@ -452,8 +452,8 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
itemRoles="option" itemRoles="option"
rootTabbable rootTabbable
style=${styleMap({ style=${styleMap({
width: `${this._width}px`, width: this._width ? `${this._width}px` : "auto",
height: `${this._height}px`, height: this._height ? `${Math.min(468, this._height)}px` : "auto",
})} })}
> >
${this._params.clipboardItem && ${this._params.clipboardItem &&