From 46363b1dc0d8db5a14ab7936a19ce3d82ab79f2a Mon Sep 17 00:00:00 2001 From: "Antoine (anso)" Date: Mon, 3 Jul 2023 08:35:02 +0000 Subject: [PATCH] [FIX] web: form statusbar margin Prior this commit, there was an undesirable margin under `.o_form_statusbar` when on mobile part of task-3355071 Forward-port-of: https://github.com/odoo/odoo/pull/126646 Part-of: odoo/odoo#130616 --- addons/web/static/src/views/form/form_compiler.js | 2 +- addons/web/static/tests/views/form/form_compiler_tests.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/web/static/src/views/form/form_compiler.js b/addons/web/static/src/views/form/form_compiler.js index 9304ae58209..1fbadf8527b 100644 --- a/addons/web/static/src/views/form/form_compiler.js +++ b/addons/web/static/src/views/form/form_compiler.js @@ -403,7 +403,7 @@ export class FormCompiler extends ViewCompiler { compileHeader(el, params) { const statusBar = createElement("div"); statusBar.className = - "o_form_statusbar position-relative d-flex justify-content-between mb-md-2 pb-2 pb-md-0"; + "o_form_statusbar position-relative d-flex justify-content-between mb-0 mb-md-2 pb-2 pb-md-0"; const buttons = []; const others = []; for (const child of el.childNodes) { diff --git a/addons/web/static/tests/views/form/form_compiler_tests.js b/addons/web/static/tests/views/form/form_compiler_tests.js index 3c6b1c75125..8b8728a54bf 100644 --- a/addons/web/static/tests/views/form/form_compiler_tests.js +++ b/addons/web/static/tests/views/form/form_compiler_tests.js @@ -184,7 +184,7 @@ QUnit.module("Form Compiler", (hooks) => { const expected = /*xml*/ `
-
+
someDiv
`; @@ -207,7 +207,7 @@ QUnit.module("Form Compiler", (hooks) => {
-
+
someDiv
inside sheet
@@ -267,7 +267,7 @@ QUnit.module("Form Compiler", (hooks) => { `; const expected = /*xml*/ ` -
+
someDiv
@@ -285,7 +285,7 @@ QUnit.module("Form Compiler", (hooks) => { `; const expected = /*xml*/ ` -
+
`;