diff options
Diffstat (limited to 'client/src/app/menu')
5 files changed, 19 insertions, 9 deletions
diff --git a/client/src/app/menu/avatar-notification.component.html b/client/src/app/menu/avatar-notification.component.html index 2f0b7c669..4ef3f0e89 100644 --- a/client/src/app/menu/avatar-notification.component.html +++ b/client/src/app/menu/avatar-notification.component.html | |||
@@ -17,7 +17,7 @@ | |||
17 | ></a> | 17 | ></a> |
18 | </div> | 18 | </div> |
19 | 19 | ||
20 | <my-user-notifications [ignoreLoadingBar]="true" [infiniteScroll]="false"></my-user-notifications> | 20 | <my-user-notifications [ignoreLoadingBar]="true" [infiniteScroll]="false" itemsPerPage="10"></my-user-notifications> |
21 | 21 | ||
22 | <a class="all-notifications" routerLink="/my-account/notifications" i18n>See all your notifications</a> | 22 | <a class="all-notifications" routerLink="/my-account/notifications" i18n>See all your notifications</a> |
23 | </ng-template> | 23 | </ng-template> |
diff --git a/client/src/app/menu/avatar-notification.component.scss b/client/src/app/menu/avatar-notification.component.scss index c86667469..e785db788 100644 --- a/client/src/app/menu/avatar-notification.component.scss +++ b/client/src/app/menu/avatar-notification.component.scss | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | /deep/ { | 4 | /deep/ { |
5 | .popover-notifications.popover { | 5 | .popover-notifications.popover { |
6 | max-width: 400px; | 6 | max-width: none; |
7 | 7 | ||
8 | .popover-body { | 8 | .popover-body { |
9 | padding: 0; | 9 | padding: 0; |
@@ -11,6 +11,7 @@ | |||
11 | font-family: $main-fonts; | 11 | font-family: $main-fonts; |
12 | overflow-y: auto; | 12 | overflow-y: auto; |
13 | max-height: 500px; | 13 | max-height: 500px; |
14 | width: 400px; | ||
14 | box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30); | 15 | box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30); |
15 | 16 | ||
16 | .notifications-header { | 17 | .notifications-header { |
@@ -40,7 +41,7 @@ | |||
40 | justify-content: center; | 41 | justify-content: center; |
41 | font-weight: $font-semibold; | 42 | font-weight: $font-semibold; |
42 | color: var(--mainForegroundColor); | 43 | color: var(--mainForegroundColor); |
43 | height: 30px; | 44 | padding: 7px 0; |
44 | } | 45 | } |
45 | } | 46 | } |
46 | } | 47 | } |
@@ -71,7 +72,7 @@ | |||
71 | justify-content: center; | 72 | justify-content: center; |
72 | 73 | ||
73 | background-color: var(--mainColor); | 74 | background-color: var(--mainColor); |
74 | color: var(--mainBackgroundColor); | 75 | color: var(#fff); |
75 | font-size: 10px; | 76 | font-size: 10px; |
76 | font-weight: $font-semibold; | 77 | font-weight: $font-semibold; |
77 | 78 | ||
@@ -80,3 +81,11 @@ | |||
80 | height: 15px; | 81 | height: 15px; |
81 | } | 82 | } |
82 | } | 83 | } |
84 | |||
85 | @media screen and (max-width: $mobile-view) { | ||
86 | /deep/ { | ||
87 | .popover-notifications.popover .popover-body { | ||
88 | width: 400px; | ||
89 | } | ||
90 | } | ||
91 | } | ||
diff --git a/client/src/app/menu/avatar-notification.component.ts b/client/src/app/menu/avatar-notification.component.ts index 60e090726..f1af08096 100644 --- a/client/src/app/menu/avatar-notification.component.ts +++ b/client/src/app/menu/avatar-notification.component.ts | |||
@@ -2,7 +2,7 @@ import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core' | |||
2 | import { User } from '../shared/users/user.model' | 2 | import { User } from '../shared/users/user.model' |
3 | import { UserNotificationService } from '@app/shared/users/user-notification.service' | 3 | import { UserNotificationService } from '@app/shared/users/user-notification.service' |
4 | import { Subscription } from 'rxjs' | 4 | import { Subscription } from 'rxjs' |
5 | import { Notifier } from '@app/core' | 5 | import { Notifier, UserNotificationSocket } from '@app/core' |
6 | import { NgbPopover } from '@ng-bootstrap/ng-bootstrap' | 6 | import { NgbPopover } from '@ng-bootstrap/ng-bootstrap' |
7 | import { NavigationEnd, Router } from '@angular/router' | 7 | import { NavigationEnd, Router } from '@angular/router' |
8 | import { filter } from 'rxjs/operators' | 8 | import { filter } from 'rxjs/operators' |
@@ -23,6 +23,7 @@ export class AvatarNotificationComponent implements OnInit, OnDestroy { | |||
23 | 23 | ||
24 | constructor ( | 24 | constructor ( |
25 | private userNotificationService: UserNotificationService, | 25 | private userNotificationService: UserNotificationService, |
26 | private userNotificationSocket: UserNotificationSocket, | ||
26 | private notifier: Notifier, | 27 | private notifier: Notifier, |
27 | private router: Router | 28 | private router: Router |
28 | ) {} | 29 | ) {} |
@@ -53,7 +54,7 @@ export class AvatarNotificationComponent implements OnInit, OnDestroy { | |||
53 | } | 54 | } |
54 | 55 | ||
55 | private subscribeToNotifications () { | 56 | private subscribeToNotifications () { |
56 | this.notificationSub = this.userNotificationService.getMyNotificationsSocket() | 57 | this.notificationSub = this.userNotificationSocket.getMyNotificationsSocket() |
57 | .subscribe(data => { | 58 | .subscribe(data => { |
58 | if (data.type === 'new') return this.unreadNotifications++ | 59 | if (data.type === 'new') return this.unreadNotifications++ |
59 | if (data.type === 'read') return this.unreadNotifications-- | 60 | if (data.type === 'read') return this.unreadNotifications-- |
diff --git a/client/src/app/menu/language-chooser.component.html b/client/src/app/menu/language-chooser.component.html index c79609898..a62b33dda 100644 --- a/client/src/app/menu/language-chooser.component.html +++ b/client/src/app/menu/language-chooser.component.html | |||
@@ -1,7 +1,7 @@ | |||
1 | <ng-template #modal let-hide="close"> | 1 | <ng-template #modal let-hide="close"> |
2 | <div class="modal-header"> | 2 | <div class="modal-header"> |
3 | <h4 i18n class="modal-title">Change the language</h4> | 3 | <h4 i18n class="modal-title">Change the language</h4> |
4 | <span class="close" aria-label="Close" role="button" (click)="hide()"></span> | 4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> |
5 | </div> | 5 | </div> |
6 | 6 | ||
7 | 7 | ||
diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index a4aaadc7f..f30b89413 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss | |||
@@ -16,7 +16,7 @@ menu { | |||
16 | height: 100%; | 16 | height: 100%; |
17 | white-space: nowrap; | 17 | white-space: nowrap; |
18 | text-overflow: ellipsis; | 18 | text-overflow: ellipsis; |
19 | overflow: hidden; | 19 | overflow: auto; |
20 | color: var(--menuForegroundColor); | 20 | color: var(--menuForegroundColor); |
21 | display: flex; | 21 | display: flex; |
22 | flex-direction: column; | 22 | flex-direction: column; |
@@ -243,7 +243,7 @@ menu { | |||
243 | } | 243 | } |
244 | } | 244 | } |
245 | 245 | ||
246 | @media screen and (max-width: 400px) { | 246 | @media screen and (max-width: $mobile-view) { |
247 | .menu-wrapper { | 247 | .menu-wrapper { |
248 | width: 100% !important; | 248 | width: 100% !important; |
249 | } | 249 | } |