mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Fix styling of raw config save button (#2752)
This commit is contained in:
parent
4d5087bd8d
commit
3f6bbffcd6
@ -53,14 +53,16 @@ class LovelaceFullConfigEditor extends LitElement {
|
||||
@click="${this._closeEditor}"
|
||||
></paper-icon-button>
|
||||
<div main-title>Edit Config</div>
|
||||
<mwc-button raised @click="${this._handleSave}">Save</mwc-button>
|
||||
<mwc-button raised @click="${this._handleSave}"
|
||||
>Save
|
||||
<ha-icon
|
||||
class="save-button
|
||||
${classMap({
|
||||
saved: this._saving! === false || this._changed === true,
|
||||
})}"
|
||||
icon="${this._changed ? "hass:circle-medium" : "hass:check"}"
|
||||
></ha-icon>
|
||||
></ha-icon
|
||||
></mwc-button>
|
||||
</app-toolbar>
|
||||
</app-header>
|
||||
<div class="content">
|
||||
@ -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;
|
||||
}
|
||||
`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user