diff --git a/src/dialogs/more-info/controls/more-info-update.ts b/src/dialogs/more-info/controls/more-info-update.ts index 7014a505e99f..5fe6d6d792c6 100644 --- a/src/dialogs/more-info/controls/more-info-update.ts +++ b/src/dialogs/more-info/controls/more-info-update.ts @@ -52,59 +52,61 @@ class MoreInfoUpdate extends LitElement { return html`
- ${this.stateObj.attributes.in_progress - ? supportsFeature(this.stateObj, UpdateEntityFeature.PROGRESS) && - this.stateObj.attributes.update_percentage !== null - ? html`` - : html`` - : nothing} -

${this.stateObj.attributes.title}

- ${this._error - ? html`${this._error}` - : nothing} -
-
- ${this.hass.formatEntityAttributeName( - this.stateObj, - "installed_version" - )} -
-
- ${this.stateObj.attributes.installed_version ?? - this.hass.localize("state.default.unavailable")} -
-
-
-
- ${this.hass.formatEntityAttributeName( - this.stateObj, - "latest_version" - )} +
+ ${this.stateObj.attributes.in_progress + ? supportsFeature(this.stateObj, UpdateEntityFeature.PROGRESS) && + this.stateObj.attributes.update_percentage !== null + ? html`` + : html`` + : nothing} +

${this.stateObj.attributes.title}

+ ${this._error + ? html`${this._error}` + : nothing} +
+
+ ${this.hass.formatEntityAttributeName( + this.stateObj, + "installed_version" + )} +
+
+ ${this.stateObj.attributes.installed_version ?? + this.hass.localize("state.default.unavailable")} +
-
- ${this.stateObj.attributes.latest_version ?? - this.hass.localize("state.default.unavailable")} +
+
+ ${this.hass.formatEntityAttributeName( + this.stateObj, + "latest_version" + )} +
+
+ ${this.stateObj.attributes.latest_version ?? + this.hass.localize("state.default.unavailable")} +
-
- ${this.stateObj.attributes.release_url - ? html`` - : nothing} + ${this.stateObj.attributes.release_url + ? html`` + : nothing} +
${supportsFeature(this.stateObj!, UpdateEntityFeature.RELEASE_NOTES) && !this._error ? this._releaseNotes === undefined @@ -293,6 +295,11 @@ class MoreInfoUpdate extends LitElement { ha-expansion-panel { margin: 16px 0; } + + .summary { + margin-bottom: 16px; + } + .row { margin: 0; display: flex; @@ -308,7 +315,9 @@ class MoreInfoUpdate extends LitElement { ); position: sticky; bottom: 0; - margin: 0 -24px -24px -24px; + margin: 0 -24px 0 -24px; + margin-bottom: calc(-1 * max(env(safe-area-inset-bottom), 24px)); + padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box; display: flex; flex-direction: column;