mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
centered loading for system health and logs (#2759)
This commit is contained in:
parent
f127bbc64d
commit
2d3d4db4dd
@ -51,7 +51,9 @@ class SystemHealthCard extends LitElement {
|
|||||||
if (!this._info) {
|
if (!this._info) {
|
||||||
sections.push(
|
sections.push(
|
||||||
html`
|
html`
|
||||||
<paper-spinner active></paper-spinner>
|
<div class="loading-container">
|
||||||
|
<paper-spinner active></paper-spinner>
|
||||||
|
</div>
|
||||||
`
|
`
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@ -120,6 +122,12 @@ class SystemHealthCard extends LitElement {
|
|||||||
td:first-child {
|
td:first-child {
|
||||||
width: 33%;
|
width: 33%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.loading-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -137,9 +137,10 @@ class SystemLogCard extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.loading-container {
|
.loading-container {
|
||||||
@apply --layout-vertical;
|
|
||||||
@apply --layout-center-center;
|
|
||||||
height: 100px;
|
height: 100px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user