From 7dcdf09a486d030f9a2f042d51649e5eec60bcb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Dieudonn=C3=A9?= Date: Mon, 10 Oct 2022 13:26:49 +0000 Subject: [PATCH] [FIX] web: add space above group separators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit reverts https://github.com/odoo/odoo/commit/0e0a2014b31e2fc6423e80971ac451a2dfe89de9 Before this commit, the string separator was too close to the previous label/field. We now have the same margins as in 15.3. Steps to reproduce: - Sales -> Orders -> customers - Choose any - Sales & Purchase tab closes odoo/odoo#102978 X-original-commit: 0510f5ed80bbffbee249e709d1df90192ee08f02 Signed-off-by: Adrien Dieudonné (adr) --- addons/web/static/src/views/form/form_group/form_group.xml | 2 +- addons/web/static/src/views/view.scss | 4 ---- addons/web/static/src/views/view_compiler.js | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/addons/web/static/src/views/form/form_group/form_group.xml b/addons/web/static/src/views/form/form_group/form_group.xml index 818afabb4b5..f62dd7468bb 100644 --- a/addons/web/static/src/views/form/form_group/form_group.xml +++ b/addons/web/static/src/views/form/form_group/form_group.xml @@ -2,7 +2,7 @@ -
+
diff --git a/addons/web/static/src/views/view.scss b/addons/web/static/src/views/view.scss index 53b8c5db389..4aac2a953ca 100644 --- a/addons/web/static/src/views/view.scss +++ b/addons/web/static/src/views/view.scss @@ -15,7 +15,3 @@ box-shadow: 0 0 120px 100px #f9f9f9; } } - -.o_horizontal_separator:not(:first-child) { - margin-top: map-get($spacers, 4); -} diff --git a/addons/web/static/src/views/view_compiler.js b/addons/web/static/src/views/view_compiler.js index e21a0899ebd..280a1ee9920 100644 --- a/addons/web/static/src/views/view_compiler.js +++ b/addons/web/static/src/views/view_compiler.js @@ -206,7 +206,7 @@ export function isTextNode(node) { */ export function makeSeparator(title) { const separator = createElement("div"); - separator.className = "o_horizontal_separator mb-3 text-uppercase fw-bolder small"; + separator.className = "o_horizontal_separator mt-4 mb-3 text-uppercase fw-bolder small"; separator.textContent = title; return separator; }