From b81f1b1d251208e4ab02f2bd810ae5c190f47a84 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 25 Nov 2024 14:52:31 +0100 Subject: [PATCH] fix unremovable column --- app/assets/stylesheets/dsfr.scss | 10 +++++----- app/helpers/dossier_helper.rb | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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)