From 3f6bbffcd694415294aa0e1338145ddce211bce4 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 14 Feb 2019 21:22:23 +0100 Subject: [PATCH] Fix styling of raw config save button (#2752) --- src/panels/lovelace/hui-editor.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/panels/lovelace/hui-editor.ts b/src/panels/lovelace/hui-editor.ts index 5b00147096..f20313998b 100644 --- a/src/panels/lovelace/hui-editor.ts +++ b/src/panels/lovelace/hui-editor.ts @@ -53,14 +53,16 @@ class LovelaceFullConfigEditor extends LitElement { @click="${this._closeEditor}" >
Edit Config
- Save - Save + + saved: this._saving! === false || this._changed === true, + })}" + icon="${this._changed ? "hass:circle-medium" : "hass:check"}" + >
@@ -113,11 +115,12 @@ class LovelaceFullConfigEditor extends LitElement { .save-button { opacity: 0; margin-left: -21px; - margin-top: -1px; - transition: opacity 1.5s; + transition: all 1.5s; } .saved { + margin-left: initial; + margin-right: -8px; opacity: 1; } `,