diff --git a/web/src/elements/notifications/NotificationDrawer.ts b/web/src/elements/notifications/NotificationDrawer.ts index c3ec51eab..b97dd2b9f 100644 --- a/web/src/elements/notifications/NotificationDrawer.ts +++ b/web/src/elements/notifications/NotificationDrawer.ts @@ -6,8 +6,10 @@ import { DEFAULT_CONFIG } from "../../api/Config"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFNotificationDrawer from "@patternfly/patternfly/components/NotificationDrawer/notification-drawer.css"; import PFDropdown from "@patternfly/patternfly/components/Dropdown/dropdown.css"; +import PFButton from "@patternfly/patternfly/components/Button/button.css"; import AKGlobal from "../../authentik.css"; import PFContent from "@patternfly/patternfly/components/Content/content.css"; +import { EVENT_NOTIFICATION_TOGGLE } from "../../constants"; @customElement("ak-notification-drawer") export class NotificationDrawer extends LitElement { @@ -19,14 +21,8 @@ export class NotificationDrawer extends LitElement { unread = 0; static get styles(): CSSResult[] { - return [PFBase, PFNotificationDrawer, PFContent, PFDropdown, AKGlobal].concat( + return [PFBase, PFButton, PFNotificationDrawer, PFContent, PFDropdown, AKGlobal].concat( css` - .pf-c-notification-drawer__header { - height: 114px; - padding: var(--pf-c-page__main-section--PaddingTop) var(--pf-c-page__main-section--PaddingRight) var(--pf-c-page__main-section--PaddingBottom) var(--pf-c-page__main-section--PaddingLeft); - display: flex; - flex-direction: column; - } .pf-c-notification-drawer__list-item-description { white-space: pre-wrap; } @@ -98,13 +94,31 @@ export class NotificationDrawer extends LitElement { } return html`
+ ${t`${this.unread} unread`} -
+ +