From 66ac23a78017a88eafe5442526de5bb37eccf111 Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Mon, 10 Jul 2023 12:59:54 +0300 Subject: [PATCH] UI: Refactoring notification settings --- .../notification-setting-form.component.html | 20 ++++++++---------- .../notification-settings.component.html | 21 ++++++++++--------- .../notification-settings.component.scss | 18 ++++++++++++---- 3 files changed, 34 insertions(+), 25 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-setting-form.component.html b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-setting-form.component.html index a4e7e062b5..752ffa367a 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-setting-form.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-setting-form.component.html @@ -18,19 +18,17 @@
- - - {{notificationTemplateTypeTranslateMap.get(notificationSettingsFormGroup.get('name').value)?.name | translate}} - + + + {{notificationTemplateTypeTranslateMap.get(notificationSettingsFormGroup.get('name').value)?.name | translate}} + +
-
+
- - + +
@@ -48,7 +48,7 @@
-
+
-
- -
+
+ +
diff --git a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.scss b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.scss index 12263158d1..fe8111afa0 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.scss +++ b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-settings.component.scss @@ -17,6 +17,11 @@ :host { .mat-mdc-card.settings-card { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; margin: 8px; @media #{$mat-gt-sm} { width: 60%; @@ -24,13 +29,18 @@ .mat-headline-5 { margin: 0; } - .notification-section { + .notification-form { + height: calc(100% - 48px); + min-height: min-content; + max-height: min-content; margin-bottom: 16px; + } + .notification-section { + height: 100%; border: 1px solid rgba(0, 0, 0, 0.12); - overflow-y: hidden; - overflow-x: scroll; + overflow: scroll; &-block { - min-width: 700px; + min-width: 470px; } } }