From bfa8b886ab80fad551071bfdacc63ab7ecdbde37 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 12 Jun 2024 13:39:04 +0200 Subject: [PATCH] Make update actions sticky on more info (#21053) --- src/dialogs/more-info/controls/more-info-update.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/dialogs/more-info/controls/more-info-update.ts b/src/dialogs/more-info/controls/more-info-update.ts index 56dc50dee9..1829325fc7 100644 --- a/src/dialogs/more-info/controls/more-info-update.ts +++ b/src/dialogs/more-info/controls/more-info-update.ts @@ -126,7 +126,6 @@ class MoreInfoUpdate extends LitElement { > ` : ""} -
${this.stateObj.attributes.auto_update ? "" @@ -240,10 +239,20 @@ class MoreInfoUpdate extends LitElement { justify-content: space-between; } .actions { + border-top: 1px solid var(--divider-color); + background: var( + --ha-dialog-surface-background, + var(--mdc-theme-surface, #fff) + ); margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; + position: sticky; + bottom: 0; + padding: 12px 0; + margin-bottom: -24px; + z-index: 1; } .actions mwc-button {