diff --git a/assets/components/header/header.vue b/assets/components/header/header.vue
index 25314f68..caddacce 100644
--- a/assets/components/header/header.vue
+++ b/assets/components/header/header.vue
@@ -85,14 +85,14 @@
@@ -115,8 +115,6 @@
-
-
+
+
@@ -154,12 +154,8 @@ function me() {
return this.$store.state.auth.user;
}
-function notifications() {
- return this.$store.state.ui.notifications;
-}
-
-function unseenNotifications() {
- return this.$store.state.ui.notifications.filter(notification => !notification.seen);
+function unseenNotificationsCount() {
+ return this.$store.state.ui.unseenNotificationsCount;
}
export default {
@@ -178,8 +174,7 @@ export default {
},
computed: {
me,
- notifications,
- unseenNotifications,
+ unseenNotificationsCount,
},
};
@@ -315,12 +310,12 @@ export default {
}
.header-account {
- padding: 1rem 1rem 1rem .75rem;
+ padding: 1rem 1.25rem 1rem .75rem;
}
.header-notifications {
position: relative;
- padding: 1rem .75rem 1rem 1rem;
+ padding: 1rem .75rem;
&.unseen .icon {
fill: var(--primary);
@@ -334,7 +329,7 @@ export default {
justify-content: center;
position: absolute;
bottom: .3rem;
- left: .1rem;
+ left: 0;
color: var(--primary);
font-size: .6rem;
font-weight: bold;
diff --git a/assets/components/header/notifications.vue b/assets/components/header/notifications.vue
index 1680d016..70f84eee 100644
--- a/assets/components/header/notifications.vue
+++ b/assets/components/header/notifications.vue
@@ -1,13 +1,11 @@
-