Add padding when loading traces or none found (#8760)

This commit is contained in:
Philip Allgaier 2021-03-30 20:16:06 +02:00 committed by GitHub
parent 6f07966ef8
commit 3888c56f1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,9 +161,9 @@ export class HaAutomationTrace extends LitElement {
</div> </div>
${this._traces === undefined ${this._traces === undefined
? "Loading…" ? html`<div class="container">Loading…</div>`
: this._traces.length === 0 : this._traces.length === 0
? "No traces found" ? html`<div class="container">No traces found</div>`
: this._trace === undefined : this._trace === undefined
? "" ? ""
: html` : html`
@ -426,6 +426,10 @@ export class HaAutomationTrace extends LitElement {
flex-direction: column; flex-direction: column;
} }
.container {
padding: 16px;
}
.graph { .graph {
border-right: 1px solid var(--divider-color); border-right: 1px solid var(--divider-color);
} }