From ae1da22ff2e35c4618543de8f4b61c50886d1676 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Mon, 19 Apr 2021 09:42:01 -0300 Subject: [PATCH] Fix matching filters links in search results --- src/Resources/public/css/layout.css | 4 ++-- src/Resources/views/Block/block_search_result.html.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Resources/public/css/layout.css b/src/Resources/public/css/layout.css index 1dba784b24..98988eb54d 100644 --- a/src/Resources/public/css/layout.css +++ b/src/Resources/public/css/layout.css @@ -355,13 +355,13 @@ body.fixed .content-header .navbar.stuck { word-wrap: break-word; } -.sonata-search-result-list .box .nav-stacked > li.item > span.matches { +.sonata-search-result-list.nav-stacked > li.item > span.matches { position: relative; display: block; padding: 10px 15px; } -.sonata-search-result-list .box .nav-stacked > li.item > span.matches > a.label { +.sonata-search-result-list.nav-stacked > li.item > span.matches > a.label { margin: 0 1px; } diff --git a/src/Resources/views/Block/block_search_result.html.twig b/src/Resources/views/Block/block_search_result.html.twig index 1666bc64d9..4e4c548190 100644 --- a/src/Resources/views/Block/block_search_result.html.twig +++ b/src/Resources/views/Block/block_search_result.html.twig @@ -70,7 +70,7 @@ file that was distributed with this source code. {% if match and ((filter.option('case_sensitive') is not same as(false) and term in match) or filter.option('case_sensitive') is same as(false) and term|lower in match|lower) %} - + {{ filter.option('label')|trans({}, filter.option('translation_domain', admin.translationDomain)) }} {% endif %}