From dd4f5eb44c115d5b85a7e825248b6fe61afd77a0 Mon Sep 17 00:00:00 2001 From: Romain Estievenart Date: Fri, 7 Oct 2022 15:53:03 +0000 Subject: [PATCH] [FIX] mail: restores the chatter's ability to grow in FormView The commit odoo/odoo@babf7634e0d431471e5b708b937407c8b731b77b broke a previous fix in odoo/odoo@6228500a3f3cdb17286d50f2662f3e7b0226f667 allowing the chatter to grow beyond its original size. This commit restores the `flex-grow: 1` on the chatter's container but also limit its maximum width (like in saas-15.3) to avoid it becoming unreadable. closes odoo/odoo#102767 X-original-commit: 3db27dc6c2e22b2b86650d1828f8e52929c43df6 Signed-off-by: Pierre Paridans (app) Signed-off-by: Romain Estievenart (res) --- .../mail/static/src/widgets/form_renderer/form_renderer.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/widgets/form_renderer/form_renderer.scss b/addons/mail/static/src/widgets/form_renderer/form_renderer.scss index b00435586c3..dcc93113800 100644 --- a/addons/mail/static/src/widgets/form_renderer/form_renderer.scss +++ b/addons/mail/static/src/widgets/form_renderer/form_renderer.scss @@ -11,14 +11,15 @@ } &.o-aside { - --Chatter-max-width: #{$o-chatter-min-width}; + --Chatter-max-width: #{$o-form-view-sheet-max-width}; --ChatterTopbar-padding-left: #{$o-horizontal-padding}; --ChatterTopbar-padding-right: #{$o-horizontal-padding}; flex-shrink: 0; - flex-grow: 0; + flex-grow: 1; border-left: $border-width solid; padding: map-get($spacers, 0); + max-width: var(--Chatter-max-width); min-width: $o-chatter-min-width; width: auto;