Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions src/panels/history/ha-panel-history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ class HaPanelHistory extends LitElement {
></ha-date-range-picker>
</div>
${this._isLoading
? html`<ha-circular-progress
active
alt=${this.hass.localize("ui.common.loading")}
></ha-circular-progress>`
? html`<div class="progress-wrapper">
<ha-circular-progress
active
alt=${this.hass.localize("ui.common.loading")}
></ha-circular-progress>
</div>`
: html`
<state-history-charts
.hass=${this.hass}
Expand Down Expand Up @@ -196,6 +198,19 @@ class HaPanelHistory extends LitElement {
.content {
padding: 0 16px 16px;
}

.progress-wrapper {
height: calc(100vh - 136px);
}

:host([narrow]) .progress-wrapper {
height: calc(100vh - 198px);
}

.progress-wrapper {
position: relative;
}

ha-circular-progress {
position: absolute;
left: 50%;
Expand Down