diff --git a/app/assets/stylesheets/02_utils.scss b/app/assets/stylesheets/02_utils.scss index d4d6f21ce..277a56688 100644 --- a/app/assets/stylesheets/02_utils.scss +++ b/app/assets/stylesheets/02_utils.scss @@ -102,6 +102,10 @@ white-space: nowrap; } +.width-max-content { + width: max-content; +} + // sizing .width-100 { width: 100%; diff --git a/app/views/administrateurs/procedures/_procedures_list.html.haml b/app/views/administrateurs/procedures/_procedures_list.html.haml index c354dba51..30f5084aa 100644 --- a/app/views/administrateurs/procedures/_procedures_list.html.haml +++ b/app/views/administrateurs/procedures/_procedures_list.html.haml @@ -54,7 +54,7 @@ %span.fr-badge= procedure.dossiers.state_not_brouillon.visible_by_administration.count .text-right - %p.fr-mb-0 N° #{procedure.id} + %p.fr-mb-0.width-max-content N° #{number_with_html_delimiter(procedure.id)} - if procedure.close? %span.fr-badge.fr-badge--sm.fr-badge--warning = t('closed', scope: [:layouts, :breadcrumb]) diff --git a/app/views/users/dossiers/_dossiers_list.html.haml b/app/views/users/dossiers/_dossiers_list.html.haml index 566c2dbd3..057ea81d6 100644 --- a/app/views/users/dossiers/_dossiers_list.html.haml +++ b/app/views/users/dossiers/_dossiers_list.html.haml @@ -37,9 +37,9 @@ = dossier.invites.map(&:email).join(', ') .text-right - %p.fr-mb-0 + %p.fr-mb-0.width-max-content = t('views.users.dossiers.dossiers_list.n_dossier') - = dossier.id + = number_with_html_delimiter(dossier.id) - if @statut == "dossiers-supprimes-recemment" %span.fr-badge.fr-badge--sm.fr-badge--warning diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 09baf5997..a9bd26108 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -463,7 +463,7 @@ fr: index: dossiers: "Mes dossiers" dossiers_list: - n_dossier: "Nº dossier" + n_dossier: "dossier Nº " no_result_title: Aucun dossier no_result_text_html: "Pour remplir une démarche, contactez votre administration en lui demandant le lien de la démarche.
Celui ci doit ressembler à %{app_base}/commencer/xxx." no_result_text_with_filter: ne correspond aux filtres sélectionnés @@ -738,7 +738,7 @@ fr: other: demandes de transfert dossiers_close_to_expiration: one: expirant - other: expirant + other: expirants dossier_trouve: one: "%{count} dossier trouvé" other: "%{count} dossiers trouvés"