Merge pull request #2965 from pengfeidong/fix_2719_supprimer_filtre_long

[fix #2719] tronquer les textes dans le filtre, max=50
This commit is contained in:
Mathieu Magnin 2018-11-15 15:19:46 +01:00 committed by GitHub
commit 215398b47f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -37,7 +37,7 @@
.close-icon { .close-icon {
vertical-align: top; vertical-align: top;
margin-top: 12px; margin-top: 12px;
margin-left: 6px; margin-right: 6px;
display: inline-block; display: inline-block;
} }
} }

View file

@ -59,10 +59,9 @@
- @current_filters.each do |filter| - @current_filters.each do |filter|
%span.filter %span.filter
= "#{filter['label']} : #{filter['value']}"
= link_to remove_filter_gestionnaire_procedure_path(@procedure, statut: @statut, table: filter['table'], column: filter['column']) do = link_to remove_filter_gestionnaire_procedure_path(@procedure, statut: @statut, table: filter['table'], column: filter['column']) do
%img.close-icon{ src: image_url("close.svg") } %img.close-icon{ src: image_url("close.svg") }
= "#{filter['label'].truncate(50)} : #{filter['value']}"
%table.table.dossiers-table.hoverable %table.table.dossiers-table.hoverable
%thead %thead
%tr %tr