From 241cb01ec6f0ff193608697139f447f4ff9f7c6d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 19 Nov 2021 09:51:45 +0100 Subject: [PATCH] web/flows: fix spinner during webauthn not centred Signed-off-by: Jens Langhammer --- .../AuthenticatorValidateStageWebAuthn.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/src/flows/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts b/web/src/flows/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts index 6638c1b02..73def1535 100644 --- a/web/src/flows/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts +++ b/web/src/flows/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts @@ -5,10 +5,12 @@ import { customElement, property } from "lit/decorators.js"; import AKGlobal from "../../../authentik.css"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; +import PFEmptyState from "@patternfly/patternfly/components/EmptyState/empty-state.css"; import PFForm from "@patternfly/patternfly/components/Form/form.css"; import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.css"; import PFLogin from "@patternfly/patternfly/components/Login/login.css"; import PFTitle from "@patternfly/patternfly/components/Title/title.css"; +import PFBullseye from "@patternfly/patternfly/layouts/Bullseye/bullseye.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; import { @@ -43,7 +45,17 @@ export class AuthenticatorValidateStageWebAuthn extends BaseStage< showBackButton = false; static get styles(): CSSResult[] { - return [PFBase, PFLogin, PFForm, PFFormControl, PFTitle, PFButton, AKGlobal]; + return [ + PFBase, + PFLogin, + PFEmptyState, + PFBullseye, + PFForm, + PFFormControl, + PFTitle, + PFButton, + AKGlobal, + ]; } async authenticate(): Promise {