Change line logic

This commit is contained in:
Bram Kragten 2021-06-07 10:45:57 +02:00
parent ce419fae7b
commit 82a4806e01
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B

View File

@ -226,6 +226,10 @@ export class SupervisorSnapshotContent extends LitElement {
: ""}
</div> `
: ""}
${this.snapshotType === "partial" &&
(!this.snapshot || this.snapshotHasPassword)
? html`<hr />`
: ""}
${!this.snapshot
? html`<ha-formfield
class="password"
@ -276,14 +280,16 @@ export class SupervisorSnapshotContent extends LitElement {
.partial-picker {
display: block;
margin: 0px -6px;
padding-right: 6px;
padding-bottom: 8px;
border-bottom: 1px solid var(--divider-color);
}
supervisor-formfield-label {
display: inline-flex;
align-items: center;
}
hr {
border-color: var(--divider-color);
border-bottom: none;
margin: 16px 0;
}
.details {
color: var(--secondary-text-color);
}