From 700c66f312f751e108787d58e6d41dc03ea9c676 Mon Sep 17 00:00:00 2001 From: George V <39589642+GeorgeGedox@users.noreply.github.com> Date: Sun, 15 Aug 2021 21:19:50 +0300 Subject: [PATCH] web/library: Updated applications card display (#1257) --- web/src/pages/LibraryPage.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/web/src/pages/LibraryPage.ts b/web/src/pages/LibraryPage.ts index 3b33fb685..f5fde9313 100644 --- a/web/src/pages/LibraryPage.ts +++ b/web/src/pages/LibraryPage.ts @@ -25,6 +25,7 @@ import PFContent from "@patternfly/patternfly/components/Content/content.css"; import AKGlobal from "../authentik.css"; import PFAvatar from "@patternfly/patternfly/components/Avatar/avatar.css"; import PFGallery from "@patternfly/patternfly/layouts/Gallery/gallery.css"; +import PFButton from "@patternfly/patternfly/components/Button/button.css"; @customElement("ak-library-app") export class LibraryApplication extends LitElement { @@ -35,6 +36,7 @@ export class LibraryApplication extends LitElement { return [ PFBase, PFCard, + PFButton, PFAvatar, AKGlobal, css` @@ -68,23 +70,20 @@ export class LibraryApplication extends LitElement { if (!this.application) { return html``; } - return html` + return html` ${this.application.metaIcon - ? html`` + />` : html``} ${until( me().then((u) => { if (!u.user.isSuperuser) return html``; return html` - + `; @@ -92,13 +91,13 @@ export class LibraryApplication extends LitElement { )} - ${this.application.name} + ${this.application.name} ${this.application.metaPublisher} ${truncate(this.application.metaDescription, 35)} - `; + `; } }
${this.application.name}