From 964760a6a8a2797d0709efaa70172ccbb8e8523e Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Sat, 31 Dec 2022 15:35:45 -0500 Subject: [PATCH] Fixed potential UI bug where notifications menu would be too small --- src/app/app.component.css | 8 +++++++- src/app/app.component.html | 2 +- .../notifications-list/notifications-list.component.html | 6 ++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/app/app.component.css b/src/app/app.component.css index af08830..95e1df9 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -34,4 +34,10 @@ ::ng-deep .mdc-switch { outline: none !important; -} \ No newline at end of file +} + +::ng-deep .notifications-menu { + width: 30vw !important; + max-width: 100% !important; + min-width: 280px !important; +} diff --git a/src/app/app.component.html b/src/app/app.component.html index 94ddab1..910c352 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -12,7 +12,7 @@
- + diff --git a/src/app/components/notifications-list/notifications-list.component.html b/src/app/components/notifications-list/notifications-list.component.html index 8253525..78930e1 100644 --- a/src/app/components/notifications-list/notifications-list.component.html +++ b/src/app/components/notifications-list/notifications-list.component.html @@ -8,13 +8,15 @@ - {{NOTIFICATION_PREFIX[notification.type]}}  + {{NOTIFICATION_PREFIX[notification.type]}} - {{notification['data'][NOTIFICATION_SUFFIX_KEY[notification.type]]}} +
+ {{notification['data'][NOTIFICATION_SUFFIX_KEY[notification.type]]}} +