diff --git a/src/auth/ha-authorize.ts b/src/auth/ha-authorize.ts index 5d5db5fc44..24ae1f190c 100644 --- a/src/auth/ha-authorize.ts +++ b/src/auth/ha-authorize.ts @@ -279,6 +279,10 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) { ); } + if (window.innerWidth > 450) { + import("../resources/particles"); + } + // If we are logging into the instance that is hosting this auth form // we will register the service worker to start preloading. if (url.host === location.host) { diff --git a/src/auth/ha-local-auth-flow.ts b/src/auth/ha-local-auth-flow.ts index 9ae8035684..da0de307df 100644 --- a/src/auth/ha-local-auth-flow.ts +++ b/src/auth/ha-local-auth-flow.ts @@ -154,6 +154,10 @@ export class HaLocalAuthFlow extends LitElement { ha-button { --mdc-typography-button-text-transform: none; } + .forgot-password-container { + text-align: right; + padding: 8px 0 16px 0; + } a.forgot-password { color: var(--primary-color); text-decoration: none; @@ -177,7 +181,7 @@ export class HaLocalAuthFlow extends LitElement { ${this._error ? html`${this._error}` - : ""} + : nothing} ${this._step ? html`` : this._selectedUser - ? html`
- -

${this._persons[this._selectedUser].name}

-
-
- - - - -
-
- - ${this.localize("ui.panel.page-authorize.form.previous")} - - - ${this.localize("ui.panel.page-authorize.form.next")} - + ? html`
+
+ +

${this._persons[this._selectedUser].name}

-
- ${this.localize( - "ui.panel.page-authorize.forgot_password" - )} + + + + + - ` +
+ + ${this.localize("ui.panel.page-authorize.form.previous")} + + + ${this.localize("ui.panel.page-authorize.form.next")} + +
+ +
` : html`

${this.localize("ui.panel.page-authorize.welcome_home")}

diff --git a/src/onboarding/ha-onboarding.ts b/src/onboarding/ha-onboarding.ts index b30fd33b24..02981a76cb 100644 --- a/src/onboarding/ha-onboarding.ts +++ b/src/onboarding/ha-onboarding.ts @@ -218,7 +218,7 @@ class HaOnboarding extends litLocalizeLiteMixin(HassElement) { this._handleProgress(ev) ); if (window.innerWidth > 450) { - import("./particles"); + import("../resources/particles"); } makeDialogManager(this, this.shadowRoot!); import("../components/ha-language-picker"); diff --git a/src/onboarding/particles.ts b/src/resources/particles.ts similarity index 96% rename from src/onboarding/particles.ts rename to src/resources/particles.ts index fcc7206c85..c10643d604 100644 --- a/src/onboarding/particles.ts +++ b/src/resources/particles.ts @@ -1,6 +1,6 @@ import { tsParticles } from "tsparticles-engine"; import { loadLinksPreset } from "tsparticles-preset-links"; -import { DEFAULT_PRIMARY_COLOR } from "../resources/styles-data"; +import { DEFAULT_PRIMARY_COLOR } from "./styles-data"; loadLinksPreset(tsParticles).then(() => { tsParticles.load("particles", {