diff --git a/web/src/interfaces/UserInterface.ts b/web/src/interfaces/UserInterface.ts index df8282d21..c3308825d 100644 --- a/web/src/interfaces/UserInterface.ts +++ b/web/src/interfaces/UserInterface.ts @@ -13,6 +13,7 @@ import PFDropdown from "@patternfly/patternfly/components/Dropdown/dropdown.css" import PFNotificationBadge from "@patternfly/patternfly/components/NotificationBadge/notification-badge.css"; import PFPage from "@patternfly/patternfly/components/Page/page.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; +import PFDisplay from "@patternfly/patternfly/utilities/Display/display.css"; import { CurrentTenant, EventsApi } from "@goauthentik/api"; @@ -56,6 +57,7 @@ export class UserInterface extends LitElement { static get styles(): CSSResult[] { return [ PFBase, + PFDisplay, PFBrand, PFPage, PFAvatar, @@ -155,7 +157,9 @@ export class UserInterface extends LitElement { ` : html``} ${config.enabledFeatures.notificationDrawer - ? html` + ? html`
- ` +
` : html``} ${config.enabledFeatures.settings - ? html`
+ ? html`
` : html``} - - - +
+ + + +
${until( me().then((u) => { if (!u.user.isSuperuser) return html``; return html` ${t`Admin interface`} diff --git a/web/src/user/LibraryPage.ts b/web/src/user/LibraryPage.ts index a170d0017..8a5769359 100644 --- a/web/src/user/LibraryPage.ts +++ b/web/src/user/LibraryPage.ts @@ -12,6 +12,7 @@ import PFEmptyState from "@patternfly/patternfly/components/EmptyState/empty-sta import PFPage from "@patternfly/patternfly/components/Page/page.css"; import PFGallery from "@patternfly/patternfly/layouts/Gallery/gallery.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; +import PFDisplay from "@patternfly/patternfly/utilities/Display/display.css"; import { Application, CoreApi } from "@goauthentik/api"; @@ -53,7 +54,7 @@ export class LibraryPage extends LitElement { } static get styles(): CSSResult[] { - return [PFBase, PFEmptyState, PFPage, PFContent, PFGallery, AKGlobal].concat(css` + return [PFBase, PFDisplay, PFEmptyState, PFPage, PFContent, PFGallery, AKGlobal].concat(css` :host, main { height: 100%; @@ -138,6 +139,7 @@ export class LibraryPage extends LitElement { } }} type="text" + class="pf-u-display-none pf-u-display-block-on-md" autofocus placeholder=${t`Search...`} />`