From fb60cefb725a29495a7c400a694458f3288162e5 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 26 Feb 2022 17:56:08 +0100 Subject: [PATCH] web/flows: fix rendering of help text on prompt stages closes #2310 Signed-off-by: Jens Langhammer --- web/src/elements/forms/FormElement.ts | 15 ++------------- web/src/pages/policies/PolicyBindingForm.ts | 4 +++- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/web/src/elements/forms/FormElement.ts b/web/src/elements/forms/FormElement.ts index bcea621d3..4129b81f4 100644 --- a/web/src/elements/forms/FormElement.ts +++ b/web/src/elements/forms/FormElement.ts @@ -1,4 +1,4 @@ -import { CSSResult, LitElement, css } from "lit"; +import { CSSResult, LitElement } from "lit"; import { TemplateResult, html } from "lit"; import { customElement, property } from "lit/decorators.js"; @@ -10,18 +10,7 @@ import { ErrorDetail } from "@goauthentik/api"; @customElement("ak-form-element") export class FormElement extends LitElement { static get styles(): CSSResult[] { - return [ - PFForm, - PFFormControl, - css` - slot { - display: flex; - flex-direction: row; - align-items: center; - justify-content: space-around; - } - `, - ]; + return [PFForm, PFFormControl]; } @property() diff --git a/web/src/pages/policies/PolicyBindingForm.ts b/web/src/pages/policies/PolicyBindingForm.ts index dffefcefc..651aabd0d 100644 --- a/web/src/pages/policies/PolicyBindingForm.ts +++ b/web/src/pages/policies/PolicyBindingForm.ts @@ -214,7 +214,9 @@ export class PolicyBindingForm extends ModelForm { if (query !== undefined) { args.search = query; } - const groups = await new CoreApi(DEFAULT_CONFIG).coreGroupsList(args); + const groups = await new CoreApi(DEFAULT_CONFIG).coreGroupsList( + args, + ); return groups.results; }} .renderElement=${(group: Group): string => {