From 6cd4526b518695be645bad2fffd2daa0f0bb22a8 Mon Sep 17 00:00:00 2001 From: Julien Durand Date: Mon, 28 Sep 2026 15:24:03 +0200 Subject: [PATCH 1/5] fix(46327): Display width for rich text fields --- templates/fields.html.twig | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/templates/fields.html.twig b/templates/fields.html.twig index 666abea1..7d7aff99 100644 --- a/templates/fields.html.twig +++ b/templates/fields.html.twig @@ -65,9 +65,16 @@ }, } %} -{% set current_textarea_options = textarea_display_options[ - in_itilobject ? 'in_itilobject' : (in_projecttask ? 'in_projecttask' : (in_form_builder ? 'in_form_builder' : 'default')) -] %} +{% set display_context = in_itilobject ? 'in_itilobject' : (in_projecttask ? 'in_projecttask' : (in_form_builder ? 'in_form_builder' : 'default')) %} +{% set current_textarea_options = textarea_display_options[display_context] %} + +{# Rich text fields use the full row width #} +{% set current_richtext_options = display_context == 'default' + ? current_textarea_options|merge({ + 'field_class': 'col-12 col-sm-12', + 'input_class': 'col-xxl-12', + }) + : current_textarea_options %} {% if not already_wrapped and not dropdown_item%} @@ -125,7 +132,7 @@ {{ macros.textareaField(input_name, value, label, field_options|merge(current_textarea_options)) }} {% elseif type == 'richtext' %} - {{ macros.textareaField(input_name, value, label, field_options|merge(current_textarea_options)|merge({ + {{ macros.textareaField(input_name, value, label, field_options|merge(current_richtext_options)|merge({ 'enable_richtext': true, })) }} From 2363d490dc306a52948c0b11e13a8772d153dbde Mon Sep 17 00:00:00 2001 From: Julien Durand Date: Mon, 28 Sep 2026 15:24:41 +0200 Subject: [PATCH 2/5] chore(46327): Changlog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87d50f5f..8f0c660d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fix display width for rich text fields - Fix massive action update on CustomAssets - Fix mandatory fields on a Tab block not being enforced when updating an item. - Fix administrators losing access to a block's configuration after setting a profile to "no access" on that block. From 765a9ff87b2bb389ff2370b6cc4b2176ce14cd70 Mon Sep 17 00:00:00 2001 From: Julien Durand Date: Mon, 28 Sep 2026 15:39:23 +0200 Subject: [PATCH 3/5] fix(46327): linters --- templates/fields.html.twig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/fields.html.twig b/templates/fields.html.twig index 7d7aff99..098cf748 100644 --- a/templates/fields.html.twig +++ b/templates/fields.html.twig @@ -69,12 +69,10 @@ {% set current_textarea_options = textarea_display_options[display_context] %} {# Rich text fields use the full row width #} -{% set current_richtext_options = display_context == 'default' - ? current_textarea_options|merge({ +{% set current_richtext_options = display_context == 'default' ? current_textarea_options|merge({ 'field_class': 'col-12 col-sm-12', 'input_class': 'col-xxl-12', - }) - : current_textarea_options %} + }) : current_textarea_options %} {% if not already_wrapped and not dropdown_item%} From a6bf6e45a70070902633793416a887b5a8bef6e5 Mon Sep 17 00:00:00 2001 From: "Romain B." <8530352+Rom1-B@users.noreply.github.com> Date: Tue, 29 Sep 2026 11:07:57 +0200 Subject: [PATCH 4/5] Apply suggestion from @Rom1-B --- templates/fields.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/fields.html.twig b/templates/fields.html.twig index 098cf748..f57a5784 100644 --- a/templates/fields.html.twig +++ b/templates/fields.html.twig @@ -70,7 +70,7 @@ {# Rich text fields use the full row width #} {% set current_richtext_options = display_context == 'default' ? current_textarea_options|merge({ - 'field_class': 'col-12 col-sm-12', + 'field_class': 'col-12', 'input_class': 'col-xxl-12', }) : current_textarea_options %} From 9961a494edf6a9b323d69a59b46099f65aca3787 Mon Sep 17 00:00:00 2001 From: Julien Durand Date: Tue, 29 Sep 2026 16:12:39 +0200 Subject: [PATCH 5/5] chore(46327): Extend label col size and align it to the left for richtexts --- templates/fields.html.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/fields.html.twig b/templates/fields.html.twig index f57a5784..c53da422 100644 --- a/templates/fields.html.twig +++ b/templates/fields.html.twig @@ -72,6 +72,8 @@ {% set current_richtext_options = display_context == 'default' ? current_textarea_options|merge({ 'field_class': 'col-12', 'input_class': 'col-xxl-12', + 'label_class': 'col-xxl-10', + 'align_label_right': false, }) : current_textarea_options %} {% if not already_wrapped and not dropdown_item%}