From baa49851b4d2315c0270d2aed58cf91425bc6ae7 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Thu, 16 May 2024 13:29:14 +0300 Subject: [PATCH] styling fixes on single and multiple autocomplete --- .../multiple-auto-complete.component.html | 42 +++++++++++-------- .../multiple-auto-complete.component.scss | 5 +++ .../single-auto-complete.component.html | 32 ++++++++------ .../single-auto-complete.component.scss | 5 +++ 4 files changed, 55 insertions(+), 29 deletions(-) diff --git a/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.html b/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.html index 5d33b0ad9..6a094c61a 100644 --- a/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.html +++ b/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.html @@ -25,7 +25,7 @@
- + @@ -33,20 +33,24 @@ -
-
-
-
- {{_titleFn(item)}} +
+
+
+
+
+ {{_titleFn(item)}} +
-
-
-
- +
+
+ +
- {{popupItemActionIcon}} +
+ {{popupItemActionIcon}} +
@@ -54,7 +58,7 @@
- + @@ -62,11 +66,15 @@ -
- {{_titleFn(item)}} -
- {{_subtitleFn(item)}} - {{popupItemActionIcon}} +
+
+ {{_titleFn(item)}} +
+ {{_subtitleFn(item)}} +
+
+ {{popupItemActionIcon}} +
diff --git a/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.scss b/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.scss index 552405597..0d992a16d 100644 --- a/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.scss +++ b/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.scss @@ -79,6 +79,11 @@ line-clamp: 1; } +::ng-deep .autocomplete-option > .mdc-list-item__primary-text { + margin: 0 !important; + width: 100%; +} + .option { line-height: 1rem; // height: 3em; diff --git a/dmp-frontend/src/app/library/auto-complete/single/single-auto-complete.component.html b/dmp-frontend/src/app/library/auto-complete/single/single-auto-complete.component.html index 43d806668..0b1bb792b 100644 --- a/dmp-frontend/src/app/library/auto-complete/single/single-auto-complete.component.html +++ b/dmp-frontend/src/app/library/auto-complete/single/single-auto-complete.component.html @@ -7,16 +7,20 @@
- + -
- {{_titleFn(item)}} -
- {{_subtitleFn(item)}} - {{popupItemActionIcon}} +
+
+ {{_titleFn(item)}} +
+ {{_subtitleFn(item)}} +
+
+ {{popupItemActionIcon}} +
@@ -24,16 +28,20 @@
- + -
- {{_titleFn(item)}} -
- {{_subtitleFn(item)}} - {{popupItemActionIcon}} +
+
+ {{_titleFn(item)}} +
+ {{_subtitleFn(item)}} +
+
+ {{popupItemActionIcon}} +
diff --git a/dmp-frontend/src/app/library/auto-complete/single/single-auto-complete.component.scss b/dmp-frontend/src/app/library/auto-complete/single/single-auto-complete.component.scss index 1e9b9daf2..bbd8d278e 100644 --- a/dmp-frontend/src/app/library/auto-complete/single/single-auto-complete.component.scss +++ b/dmp-frontend/src/app/library/auto-complete/single/single-auto-complete.component.scss @@ -35,6 +35,11 @@ } } +::ng-deep .autocomplete-option > .mdc-list-item__primary-text { + margin: 0 !important; + width: 100%; +} + .option-icon { mat-icon { margin: 0px 5px 0px 10px;