web/user: fix app icon size for user interface

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-07-28 17:11:20 +02:00
parent 782d95b4a3
commit 1ba1a1def5
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export class AppIcon extends AKElement {
app?: Application; app?: Application;
@property() @property()
size: PFSize = PFSize.Large; size?: PFSize;
static get styles(): CSSResult[] { static get styles(): CSSResult[] {
return [ return [

View File

@ -1,3 +1,4 @@
import { PFSize } from "@goauthentik/app/elements/Spinner";
import { truncateWords } from "@goauthentik/common/utils"; import { truncateWords } from "@goauthentik/common/utils";
import { AKElement, rootInterface } from "@goauthentik/elements/Base"; import { AKElement, rootInterface } from "@goauthentik/elements/Base";
import "@goauthentik/elements/Expand"; import "@goauthentik/elements/Expand";
@ -77,7 +78,7 @@ export class LibraryApplication extends AKElement {
href="${ifDefined(this.application.launchUrl ?? "")}" href="${ifDefined(this.application.launchUrl ?? "")}"
target="${ifDefined(this.application.openInNewTab ? "_blank" : undefined)}" target="${ifDefined(this.application.openInNewTab ? "_blank" : undefined)}"
> >
<ak-app-icon .app=${this.application}></ak-app-icon> <ak-app-icon size=${PFSize.Large} .app=${this.application}></ak-app-icon>
</a> </a>
</div> </div>
<div class="pf-c-card__title"> <div class="pf-c-card__title">