diff --git a/pyproject.toml b/pyproject.toml index 90a9f4cd09e8..4617d88e3cd2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20231227.0" +version = "20231228.0" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md" diff --git a/src/components/ha-list-item.ts b/src/components/ha-list-item.ts index d3481cc192e6..dcd13f0f7074 100644 --- a/src/components/ha-list-item.ts +++ b/src/components/ha-list-item.ts @@ -46,6 +46,7 @@ export class HaListItem extends ListItemBase { .mdc-deprecated-list-item__meta { display: var(--mdc-list-item-meta-display); align-items: center; + flex-shrink: 0; } :host([graphic="icon"]:not([twoline])) .mdc-deprecated-list-item__graphic { diff --git a/src/data/action.ts b/src/data/action.ts index a7ed018409f4..2c5f2aa12578 100644 --- a/src/data/action.ts +++ b/src/data/action.ts @@ -67,6 +67,7 @@ export const ACTION_GROUPS: AutomationElementGroup = { icon: mdiDotsHorizontal, members: { event: {}, + service: {}, }, }, } as const; diff --git a/src/dialogs/area-filter/area-filter-dialog.ts b/src/dialogs/area-filter/area-filter-dialog.ts index 0a62bfbf275b..2dc7cacadcb2 100644 --- a/src/dialogs/area-filter/area-filter-dialog.ts +++ b/src/dialogs/area-filter/area-filter-dialog.ts @@ -207,7 +207,8 @@ export class DialogAreaFilter color: var(--disabled-text-color); } .handle { - cursor: move; + cursor: move; /* fallback if grab cursor is unsupported */ + cursor: grab; } .actions { display: flex; diff --git a/src/panels/config/automation/action/ha-automation-action.ts b/src/panels/config/automation/action/ha-automation-action.ts index c75237a2c00f..dca4bab6acde 100644 --- a/src/panels/config/automation/action/ha-automation-action.ts +++ b/src/panels/config/automation/action/ha-automation-action.ts @@ -319,7 +319,8 @@ export default class HaAutomationAction extends LitElement { overflow: hidden; } .handle { - cursor: move; + cursor: move; /* fallback if grab cursor is unsupported */ + cursor: grab; padding: 12px; } .handle ha-svg-icon { diff --git a/src/panels/config/automation/action/types/ha-automation-action-choose.ts b/src/panels/config/automation/action/types/ha-automation-action-choose.ts index 9051fbb75cd0..5c0ee0763790 100644 --- a/src/panels/config/automation/action/types/ha-automation-action-choose.ts +++ b/src/panels/config/automation/action/types/ha-automation-action-choose.ts @@ -543,7 +543,8 @@ export class HaChooseAction extends LitElement implements ActionElement { padding: 0 16px 16px 16px; } .handle { - cursor: move; + cursor: move; /* fallback if grab cursor is unsupported */ + cursor: grab; padding: 12px; } .handle ha-svg-icon { diff --git a/src/panels/config/automation/add-automation-element-dialog.ts b/src/panels/config/automation/add-automation-element-dialog.ts index 6c830976c54f..fdf1d97f4086 100644 --- a/src/panels/config/automation/add-automation-element-dialog.ts +++ b/src/panels/config/automation/add-automation-element-dialog.ts @@ -452,8 +452,8 @@ class DialogAddAutomationElement extends LitElement implements HassDialog { itemRoles="option" rootTabbable style=${styleMap({ - width: `${this._width}px`, - height: `${this._height}px`, + width: this._width ? `${this._width}px` : "auto", + height: this._height ? `${Math.min(468, this._height)}px` : "auto", })} > ${this._params.clipboardItem && diff --git a/src/panels/config/automation/condition/ha-automation-condition.ts b/src/panels/config/automation/condition/ha-automation-condition.ts index 7f38b7bb2b7c..27364b92a3ed 100644 --- a/src/panels/config/automation/condition/ha-automation-condition.ts +++ b/src/panels/config/automation/condition/ha-automation-condition.ts @@ -358,7 +358,8 @@ export default class HaAutomationCondition extends LitElement { overflow: hidden; } .handle { - cursor: move; + cursor: move; /* fallback if grab cursor is unsupported */ + cursor: grab; padding: 12px; } .handle ha-svg-icon { diff --git a/src/panels/config/automation/ha-automation-picker.ts b/src/panels/config/automation/ha-automation-picker.ts index 46974adb07ce..a29a88d6a35c 100644 --- a/src/panels/config/automation/ha-automation-picker.ts +++ b/src/panels/config/automation/ha-automation-picker.ts @@ -328,7 +328,7 @@ class HaAutomationPicker extends LitElement { > ${!this.automations.length - ? html`
${this.hass.localize(
"ui.panel.config.automation.picker.empty_text_1"
- )}
+ )}
+
${this.hass.localize(
"ui.panel.config.automation.picker.empty_text_2"
)}
@@ -349,9 +351,7 @@ class HaAutomationPicker extends LitElement {
rel="noreferrer"
>
${this.hass.localize( "ui.panel.config.automation.editor.triggers.description" @@ -125,8 +124,7 @@ export class HaManualAutomationEditor extends LitElement { > - ${!this.hass.userData?.showAdvanced && - !ensureArray(this.config.condition)?.length + ${!ensureArray(this.config.condition)?.length ? html`
${this.hass.localize( "ui.panel.config.automation.editor.conditions.description", @@ -165,8 +163,7 @@ export class HaManualAutomationEditor extends LitElement { - ${!this.hass.userData?.showAdvanced && - !ensureArray(this.config.action)?.length + ${!ensureArray(this.config.action)?.length ? html`
${this.hass.localize(
"ui.panel.config.automation.editor.actions.description"
diff --git a/src/panels/config/automation/trigger/ha-automation-trigger.ts b/src/panels/config/automation/trigger/ha-automation-trigger.ts
index d95e9d292497..90467f61e0b8 100644
--- a/src/panels/config/automation/trigger/ha-automation-trigger.ts
+++ b/src/panels/config/automation/trigger/ha-automation-trigger.ts
@@ -298,7 +298,8 @@ export default class HaAutomationTrigger extends LitElement {
overflow: hidden;
}
.handle {
- cursor: move;
+ cursor: move; /* fallback if grab cursor is unsupported */
+ cursor: grab;
padding: 12px;
}
.handle ha-svg-icon {
diff --git a/src/panels/config/helpers/forms/ha-input_select-form.ts b/src/panels/config/helpers/forms/ha-input_select-form.ts
index e65f951e4bb2..e8be0fe50418 100644
--- a/src/panels/config/helpers/forms/ha-input_select-form.ts
+++ b/src/panels/config/helpers/forms/ha-input_select-form.ts
@@ -285,7 +285,8 @@ class HaInputSelectForm extends LitElement {
margin-bottom: 8px;
}
.handle {
- cursor: move;
+ cursor: move; /* fallback if grab cursor is unsupported */
+ cursor: grab;
padding-right: 12px;
}
.handle ha-svg-icon {
diff --git a/src/panels/config/scene/ha-scene-dashboard.ts b/src/panels/config/scene/ha-scene-dashboard.ts
index 09b35fcad172..0d3f9a7a0561 100644
--- a/src/panels/config/scene/ha-scene-dashboard.ts
+++ b/src/panels/config/scene/ha-scene-dashboard.ts
@@ -265,9 +265,7 @@ class HaSceneDashboard extends LitElement {
rel="noreferrer"
>