diff --git a/app/assets/stylesheets/dsfr.scss b/app/assets/stylesheets/dsfr.scss index 94653512a..65a08d171 100644 --- a/app/assets/stylesheets/dsfr.scss +++ b/app/assets/stylesheets/dsfr.scss @@ -234,11 +234,6 @@ input[type='radio'] { text-transform: lowercase; } -// We don't want badge to split in two lines -.fr-tag { - white-space: nowrap; -} - // Caption is bold, but all-procedures table use fr-tag in caption .fr-table caption .fr-tag { font-weight: normal; @@ -252,3 +247,8 @@ input[type='radio'] { .fr-cell--numeric { font-variant-numeric: tabular-nums; } + +// We don't want badge to split in two lines +.fr-tag.no-wrap { + white-space: nowrap; +} diff --git a/app/helpers/dossier_helper.rb b/app/helpers/dossier_helper.rb index ab60b1222..d0e20d130 100644 --- a/app/helpers/dossier_helper.rb +++ b/app/helpers/dossier_helper.rb @@ -130,7 +130,7 @@ module DossierHelper end def tag_label(name, color) - tag.span(name, class: "fr-tag fr-tag--sm fr-tag--#{Label.class_name(color)}") + tag.span(name, class: "fr-tag fr-tag--sm fr-tag--#{Label.class_name(color)} no-wrap") end def demandeur_dossier(dossier)