From 30f4a09a885ce69ee1f5ea2c663860b2b15929f9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 22 Dec 2022 17:31:06 +0100 Subject: [PATCH] web/elements: fix alignment for checkboxes in table Signed-off-by: Jens Langhammer --- web/src/elements/table/Table.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/elements/table/Table.ts b/web/src/elements/table/Table.ts index 0e8e42a03..02cd9211b 100644 --- a/web/src/elements/table/Table.ts +++ b/web/src/elements/table/Table.ts @@ -12,7 +12,7 @@ import "@goauthentik/elements/table/TableSearch"; import { t } from "@lingui/macro"; -import { CSSResult, TemplateResult, html } from "lit"; +import { CSSResult, TemplateResult, css, html } from "lit"; import { property, state } from "lit/decorators.js"; import { ifDefined } from "lit/directives/if-defined.js"; @@ -157,6 +157,11 @@ export abstract class Table extends AKElement { PFDropdown, PFPagination, AKGlobal, + css` + .pf-c-table tbody .pf-c-table__check input { + margin-top: calc(var(--pf-c-table__check--input--MarginTop) + 1px); + } + `, ]; }