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`Notifications`}

-

+ ${t`${this.unread} unread`} -

+ +
+
+ +
+
    diff --git a/web/src/locales/en.po b/web/src/locales/en.po index 481862205..3b23e37b8 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -2037,7 +2037,7 @@ msgstr "Notification Transports" msgid "Notification rule" msgstr "Notification rule" -#: src/elements/notifications/NotificationDrawer.ts:99 +#: src/elements/notifications/NotificationDrawer.ts:95 msgid "Notifications" msgstr "Notifications" @@ -3862,7 +3862,7 @@ msgstr "{0} - {1} of {2}" msgid "{0} is available!" msgstr "{0} is available!" -#: src/elements/notifications/NotificationDrawer.ts:102 +#: src/elements/notifications/NotificationDrawer.ts:98 msgid "{0} unread" msgstr "{0} unread" diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index f70b9b91b..f67b492a1 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -2029,7 +2029,7 @@ msgstr "" msgid "Notification rule" msgstr "" -#: src/elements/notifications/NotificationDrawer.ts:99 +#: src/elements/notifications/NotificationDrawer.ts:95 msgid "Notifications" msgstr "" @@ -3850,7 +3850,7 @@ msgstr "" msgid "{0} is available!" msgstr "" -#: src/elements/notifications/NotificationDrawer.ts:102 +#: src/elements/notifications/NotificationDrawer.ts:98 msgid "{0} unread" msgstr ""