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>
|
||||||
</div>
|
</div>
|
||||||
${this.renderLegend()}
|
${this.renderLegend()}
|
||||||
` : html`
|
` : html`<ha-spinner aria-label="Loading" size="small"></ha-spinner>`}
|
||||||
<ha-circular-progress indeterminate></ha-circular-progress>
|
|
||||||
`}
|
|
||||||
</div>` : '';
|
</div>` : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ const style = css`
|
|||||||
ha-card[hover] {
|
ha-card[hover] {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
ha-circular-progress {
|
ha-spinner {
|
||||||
margin: auto;
|
margin: 4px auto;
|
||||||
}
|
}
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user