From f4dc8ca3d222f774b4424b9dae44577386ca1a28 Mon Sep 17 00:00:00 2001 From: lotte Date: Tue, 28 Nov 2023 19:17:23 +0100 Subject: [PATCH 1/2] 108595: fix for overflowing search filter badge selection --- .../search-label/search-label.component.html | 8 +++++--- .../search-label/search-label.component.scss | 3 +++ .../search-labels/search-label/search-label.component.ts | 1 + .../search/search-labels/search-labels.component.html | 4 ++-- .../search/search-labels/search-labels.component.scss | 9 ++++++++- src/app/shared/search/search.component.html | 4 ++-- 6 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 src/app/shared/search/search-labels/search-label/search-label.component.scss diff --git a/src/app/shared/search/search-labels/search-label/search-label.component.html b/src/app/shared/search/search-labels/search-label/search-label.component.html index bffb7f9329b..5b7b4a9c359 100644 --- a/src/app/shared/search/search-labels/search-label/search-label.component.html +++ b/src/app/shared/search/search-labels/search-label/search-label.component.html @@ -1,6 +1,8 @@ - - {{('search.filters.applied.' + key) | translate}}: {{'search.filters.' + filterName + '.' + value | translate: {default: normalizeFilterValue(value)} }} - × + + {{('search.filters.applied.' + key) | translate}}: {{'search.filters.' + filterName + '.' + value | translate: {default: normalizeFilterValue(value)} }} + × + diff --git a/src/app/shared/search/search-labels/search-label/search-label.component.scss b/src/app/shared/search/search-labels/search-label/search-label.component.scss new file mode 100644 index 00000000000..601f57d407d --- /dev/null +++ b/src/app/shared/search/search-labels/search-label/search-label.component.scss @@ -0,0 +1,3 @@ +.badge { + white-space: inherit; +} diff --git a/src/app/shared/search/search-labels/search-label/search-label.component.ts b/src/app/shared/search/search-labels/search-label/search-label.component.ts index 74526ad2ad4..16d22c17fba 100644 --- a/src/app/shared/search/search-labels/search-label/search-label.component.ts +++ b/src/app/shared/search/search-labels/search-label/search-label.component.ts @@ -11,6 +11,7 @@ import { SearchConfigurationService } from '../../../../core/shared/search/searc @Component({ selector: 'ds-search-label', templateUrl: './search-label.component.html', + styleUrls: ['./search-label.component.scss'] , }) /** diff --git a/src/app/shared/search/search-labels/search-labels.component.html b/src/app/shared/search/search-labels/search-labels.component.html index f6af072c517..4812dd5096e 100644 --- a/src/app/shared/search/search-labels/search-labels.component.html +++ b/src/app/shared/search/search-labels/search-labels.component.html @@ -1,5 +1,5 @@
- - + +
diff --git a/src/app/shared/search/search-labels/search-labels.component.scss b/src/app/shared/search/search-labels/search-labels.component.scss index c48cd573042..348c46571df 100644 --- a/src/app/shared/search/search-labels/search-labels.component.scss +++ b/src/app/shared/search/search-labels/search-labels.component.scss @@ -1,3 +1,10 @@ :host { line-height: 1; -} \ No newline at end of file + .labels { + margin: 0 calc(-1 * var(--bs-spacer)/8); + ds-search-label { + display: inline-block; + padding: 0 calc(var(--bs-spacer)/8); + } + } +} diff --git a/src/app/shared/search/search.component.html b/src/app/shared/search/search.component.html index 5ca3e925a58..1fca08494c9 100644 --- a/src/app/shared/search/search.component.html +++ b/src/app/shared/search/search.component.html @@ -82,8 +82,8 @@ [inPlaceSearch]="inPlaceSearch" [searchPlaceholder]="searchFormPlaceholder | translate"> -
-
+
+
From a026c65a3c6970fae8b72c00667f500a0cff813c Mon Sep 17 00:00:00 2001 From: lotte Date: Thu, 30 Nov 2023 12:14:24 +0100 Subject: [PATCH 2/2] Removed unnecessary change --- .../shared/search/search-labels/search-labels.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/shared/search/search-labels/search-labels.component.html b/src/app/shared/search/search-labels/search-labels.component.html index 4812dd5096e..f6af072c517 100644 --- a/src/app/shared/search/search-labels/search-labels.component.html +++ b/src/app/shared/search/search-labels/search-labels.component.html @@ -1,5 +1,5 @@
- - + +