Skip to content

Commit

Permalink
OEL-2527: Fixed long filter badges in list pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiberiu Dumitru committed Jun 4, 2024
1 parent 1e7e7b8 commit 32d90ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions resources/sass/components/_list_pages.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.selected-filters-block .badge {
text-align: left;
white-space: normal;
line-height: var(--bs-body-line-height);
}

.oe-list-pages-sort-form {
display: flex;
justify-content: flex-end;
Expand Down
2 changes: 1 addition & 1 deletion templates/list_pages/node--oe-list-page--full.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{{ content['extra_field_oe_list_page_selected_filters:node:oe_list_page']|merge({'#theme': 'field__bare'}) }}
{% endset %}
{% if selected_filters|trim is not empty %}
<div class="col-md-12 order-md-2 mt-3">
<div class="col-md-12 order-md-2 mt-3 selected-filters-block">
{{ selected_filters }}
</div>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
{% endif %}
{{ title_suffix }}
<div class="col-md-12 order-md-2 mt-3">
<div class="col-md-12 order-md-2 mt-3 selected-filters-block">
{{ content }}
</div>
{% endapply %}
Expand Down

0 comments on commit 32d90ad

Please sign in to comment.