From f68da78a772b1b448db2ac4883243462bddd0c42 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Wed, 9 Mar 2022 21:57:13 -0400 Subject: [PATCH] feat: shorten long agenda filter button labels Sessions with long names lead to poor rendering of the agenda filter buttons on the 'customize the agenda view' page. This truncates those labels at 3 words. --- ietf/templates/meeting/agenda_filter.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/templates/meeting/agenda_filter.html b/ietf/templates/meeting/agenda_filter.html index 8c06aedd41..16a1d8a630 100644 --- a/ietf/templates/meeting/agenda_filter.html +++ b/ietf/templates/meeting/agenda_filter.html @@ -69,9 +69,9 @@

{% if button.toggled_by %}data-filter-keywords="{{ button.toggled_by|join:"," }}"{% endif %} data-filter-item="{{ button.keyword }}"> {% if button.is_bof %} - {{ button.label }} + {{ button.label|truncatewords:"3" }} {% else %} - {{ button.label }} + {{ button.label|truncatewords:"3" }} {% endif %}