Make "loading next step" look like progress step in config flows (#27234)

pull/27240/head
Petar Petrov 2025-09-29 10:19:18 +03:00 committed by GitHub
parent a0d2e7312b
commit e546cb3374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

@ -26,20 +26,21 @@ class StepFlowLoading extends LitElement {
this.step
);
return html`
<div class="init-spinner">
<div class="content">
<ha-spinner size="large"></ha-spinner>
${description ? html`<div>${description}</div>` : ""}
<ha-spinner></ha-spinner>
</div>
`;
}
static styles = css`
.init-spinner {
.content {
margin-top: 0;
padding: 50px 100px;
text-align: center;
}
ha-spinner {
margin-top: 16px;
margin-bottom: 16px;
}
`;
}

View File

@ -34,7 +34,7 @@ class StepFlowProgress extends LitElement {
)}%</ha-progress-ring
>
`
: html` <ha-spinner size="large"></ha-spinner> `}
: html`<ha-spinner size="large"></ha-spinner>`}
${this.flowConfig.renderShowFormProgressDescription(
this.hass,
this.step
@ -48,6 +48,7 @@ class StepFlowProgress extends LitElement {
configFlowContentStyles,
css`
.content {
margin-top: 0;
padding: 50px 100px;
text-align: center;
}