From f5d1669ea886e9e2dd308e0b0a8d669b2b32585e Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Thu, 3 Aug 2023 10:24:46 +0200 Subject: [PATCH] [FIX] web: adapt the form view to large screens Prior to this commit, there was a spacing issue in large screens (eg. 4K screen), the form view wasn't large enough and this created a big gap between the form view and the chatter. This commit adapts the form view to large screens. task-3453381 Part of task-3326263 closes odoo/odoo#136454 X-original-commit: 1a995cad898283f6909506ba43d1692381b3d6ef Signed-off-by: Pierre Paridans (app) --- addons/mail/static/src/views/web/form/form_renderer.scss | 3 --- addons/web/static/src/views/form/form.variables.scss | 1 + addons/web/static/src/views/form/form_controller.scss | 4 ++++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/mail/static/src/views/web/form/form_renderer.scss b/addons/mail/static/src/views/web/form/form_renderer.scss index c26f76e736f..c2892b37263 100644 --- a/addons/mail/static/src/views/web/form/form_renderer.scss +++ b/addons/mail/static/src/views/web/form/form_renderer.scss @@ -8,12 +8,9 @@ --ChatterTopbar-padding-right: #{$o-horizontal-padding}; &.o-aside { - --Chatter-max-width: #{$o-form-view-sheet-max-width}; - flex-shrink: 0; flex-grow: 1; padding: map-get($spacers, 0); - max-width: var(--Chatter-max-width); width: $o-mail-Chatter-minWidth; .o-mail-Message.o-not-discussion { diff --git a/addons/web/static/src/views/form/form.variables.scss b/addons/web/static/src/views/form/form.variables.scss index eb33a399578..55ad8093c80 100644 --- a/addons/web/static/src/views/form/form.variables.scss +++ b/addons/web/static/src/views/form/form.variables.scss @@ -1,4 +1,5 @@ $o-sheet-vpadding: $o-spacer * 1.5 !default; +$o-form-renderer-max-width: 2600px !default; $o-form-view-sheet-max-width: 1534px !default; $o-form-picture-size: 90px !default; diff --git a/addons/web/static/src/views/form/form_controller.scss b/addons/web/static/src/views/form/form_controller.scss index 968b6dcbf55..5965afe29d4 100644 --- a/addons/web/static/src/views/form/form_controller.scss +++ b/addons/web/static/src/views/form/form_controller.scss @@ -212,6 +212,10 @@ } } + .o_form_renderer { + max-width: $o-form-renderer-max-width; + } + // No sheet &.o_form_nosheet, .o_form_nosheet { // Since 16.3 the `o_form_nosheet` element acts as a sheet filling the