fix(character_limit_base) Displays the number of characters recommended for everyone

This commit is contained in:
Corinne Durrmeyer 2024-10-30 17:28:34 +01:00
parent 83c942c338
commit 1c99a7c187
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -20,5 +20,5 @@
- if @champ.description.present?
%span.fr-hint-text= render SimpleFormatComponent.new(@champ.description, allow_a: true)
- if @champ.textarea?
%span.sr-only= t('.recommended_size', size: @champ.character_limit_base)
- if @champ.textarea? && @champ.character_limit_base&.positive?
%span.fr-hint-text= t('.recommended_size', size: @champ.character_limit_base)