mirror of
https://github.com/kalkih/mini-graph-card.git
synced 2025-12-20 00:35:56 +01:00
fix: migrate to ha-spinner (#1234)
Remove the old spinner and use the new one. The old spinner was discontinued in HA 2025.5. The loading indicator will not be shown, if your are using a version of HA < 2025.5!
This commit is contained in:
@@ -343,9 +343,7 @@ class MiniGraphCard extends LitElement {
|
||||
</div>
|
||||
</div>
|
||||
${this.renderLegend()}
|
||||
` : html`
|
||||
<ha-circular-progress indeterminate></ha-circular-progress>
|
||||
`}
|
||||
` : html`<ha-spinner aria-label="Loading" size="small"></ha-spinner>`}
|
||||
</div>` : '';
|
||||
}
|
||||
|
||||
|
||||
@@ -62,8 +62,8 @@ const style = css`
|
||||
ha-card[hover] {
|
||||
cursor: pointer;
|
||||
}
|
||||
ha-circular-progress {
|
||||
margin: auto;
|
||||
ha-spinner {
|
||||
margin: 4px auto;
|
||||
}
|
||||
.flex {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user