diff --git a/web/src/admin/users/UserViewPage.ts b/web/src/admin/users/UserViewPage.ts index 7b5b35d29..9f0dd1731 100644 --- a/web/src/admin/users/UserViewPage.ts +++ b/web/src/admin/users/UserViewPage.ts @@ -23,7 +23,7 @@ import "@goauthentik/elements/user/SessionList"; import "@goauthentik/elements/user/UserConsentList"; import { msg, str } from "@lit/localize"; -import { CSSResult, TemplateResult, html } from "lit"; +import { CSSResult, TemplateResult, css, html } from "lit"; import { customElement, property } from "lit/decorators.js"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; @@ -69,6 +69,15 @@ export class UserViewPage extends AKElement { PFCard, PFDescriptionList, PFSizing, + css` + .pf-c-description-list__description ak-action-button { + margin-right: 6px; + margin-bottom: 6px; + } + .ak-button-collection { + max-width: 12em; + } + `, ]; } @@ -90,6 +99,221 @@ export class UserViewPage extends AKElement { ${this.renderBody()}`; } + renderUserCard(): TemplateResult { + if (!this.user) { + return html``; + } + return html` +