From 3b9653c2b70d5377bb3801608422af5e13b3475b Mon Sep 17 00:00:00 2001 From: Jiro Ghianni Date: Tue, 17 Sep 2024 14:46:16 +0200 Subject: [PATCH] :lipstick: [#2741] Added multiselect listbox mobile design --- .../FilterBar/MultiSelectListbox.html | 51 +++++++++++-------- .../scss/components/FilterBar/FilterBar.scss | 8 +++ .../FilterBar/MultiSelectListbox.scss | 6 +++ .../templates/pages/cases/list_inner.html | 2 +- 4 files changed, 44 insertions(+), 23 deletions(-) diff --git a/src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html b/src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html index 33ab0b14da..86b0c2cbec 100644 --- a/src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html +++ b/src/open_inwoner/components/templates/components/FilterBar/MultiSelectListbox.html @@ -1,29 +1,36 @@ {% load i18n l10n form_tags icon_tags button_tags %}
- -
- - {# Submit button appears on select #} -
- +
+
+ {% icon icon="filter_alt" outlined=True %}
-
- {% button bordered=False text=_("Wis alle filters") id="resetFilters" type="button" transparent=True primary=True %} +
+ +
+ + {# Submit button appears on select #} +
+ +
+
+
+ {% button bordered=False text=_("Wis alle filters") id="resetFilters" type="button" transparent=True primary=True %} +
diff --git a/src/open_inwoner/scss/components/FilterBar/FilterBar.scss b/src/open_inwoner/scss/components/FilterBar/FilterBar.scss index 4456147828..4259b33894 100644 --- a/src/open_inwoner/scss/components/FilterBar/FilterBar.scss +++ b/src/open_inwoner/scss/components/FilterBar/FilterBar.scss @@ -22,4 +22,12 @@ &__frequency-sum { padding: 0; } + + &__label { + display: none; + padding-top: calc(var(--font-size-body) / 2); + @media (min-width: 768px) { + display: inline; + } + } } diff --git a/src/open_inwoner/scss/components/FilterBar/MultiSelectListbox.scss b/src/open_inwoner/scss/components/FilterBar/MultiSelectListbox.scss index 5d314084bd..6391b12d67 100644 --- a/src/open_inwoner/scss/components/FilterBar/MultiSelectListbox.scss +++ b/src/open_inwoner/scss/components/FilterBar/MultiSelectListbox.scss @@ -196,4 +196,10 @@ } } } + + .multiselect-listbox__mobile-button { + @media (min-width: 768px) { + display: none; + } + } } diff --git a/src/open_inwoner/templates/pages/cases/list_inner.html b/src/open_inwoner/templates/pages/cases/list_inner.html index 9685c0da72..2cdfd0425a 100644 --- a/src/open_inwoner/templates/pages/cases/list_inner.html +++ b/src/open_inwoner/templates/pages/cases/list_inner.html @@ -6,7 +6,7 @@

{{ page_title }} ({{ paginator.count }} {% if filter_form %}
- {% trans 'Filter op' %}: + {% trans 'Filter op' %}: {% include "components/FilterBar/MultiSelectListbox.html" with statusfrequencies=status_freqs %}