mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +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) {
|
||||
sections.push(
|
||||
html`
|
||||
<div class="loading-container">
|
||||
<paper-spinner active></paper-spinner>
|
||||
</div>
|
||||
`
|
||||
);
|
||||
} else {
|
||||
@ -120,6 +122,12 @@ class SystemHealthCard extends LitElement {
|
||||
td:first-child {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.loading-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
@ -137,9 +137,10 @@ class SystemLogCard extends LitElement {
|
||||
}
|
||||
|
||||
.loading-container {
|
||||
@apply --layout-vertical;
|
||||
@apply --layout-center-center;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user