From eb73a6ca40ebad6a9d3f2d2d585299a854f8a842 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Mon, 23 Sep 2019 22:11:56 -0300 Subject: [PATCH] Don't truncate breadcrumb components when "safe_label" is used --- src/Resources/views/standard_layout.html.twig | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Resources/views/standard_layout.html.twig b/src/Resources/views/standard_layout.html.twig index c09e5b3da0..e13ebcfb35 100644 --- a/src/Resources/views/standard_layout.html.twig +++ b/src/Resources/views/standard_layout.html.twig @@ -162,8 +162,6 @@ file that was distributed with this source code. {%- set label = label|trans(menu.extra('translation_params', {}), translation_domain) -%} {%- endif -%} - {% set label = label|truncate(100) %} - {% if not loop.last %}
  • {% if menu.uri is not empty %} @@ -171,15 +169,15 @@ file that was distributed with this source code. {% if menu.extra('safe_label', true) %} {{- label|raw -}} {% else %} - {{- label -}} + {{- label|truncate(100) -}} {% endif %} {% else %} - {{ label }} + {{ label|truncate(100) }} {% endif %}
  • {% else %} -
  • {{ label }}
  • +
  • {{ label|truncate(100) }}
  • {% endif %} {% endfor %} {% endif %}