From a11d043245271817ac0c16fbefc3b3bad4d82d5d Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Fri, 4 Jun 2021 11:36:26 +0000 Subject: [PATCH] [FIX] web_editor: fix position of shapes This commit will fix a bug related to the position of the shapes Blocks/01 and Blocks/02. - Now, they can be connected when using together. - Avoid a bug of position when the snippet is too tall. Fix related to the PR #70843 closes odoo/odoo#71809 X-original-commit: b5f135f83e576f6b552392249913dacca45a7650 Signed-off-by: Quentin Smetz (qsm) --- .../static/shapes/Blocks/01_001.svg | 26 +++++++++++++++++++ .../static/shapes/Blocks/02_001.svg | 25 ++++++++++++++++++ .../static/src/scss/web_editor.variables.scss | 2 ++ addons/web_editor/views/snippets.xml | 4 +-- 4 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 addons/web_editor/static/shapes/Blocks/01_001.svg create mode 100644 addons/web_editor/static/shapes/Blocks/02_001.svg diff --git a/addons/web_editor/static/shapes/Blocks/01_001.svg b/addons/web_editor/static/shapes/Blocks/01_001.svg new file mode 100644 index 00000000000..a5c6fbb5999 --- /dev/null +++ b/addons/web_editor/static/shapes/Blocks/01_001.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + diff --git a/addons/web_editor/static/shapes/Blocks/02_001.svg b/addons/web_editor/static/shapes/Blocks/02_001.svg new file mode 100644 index 00000000000..95dd7270461 --- /dev/null +++ b/addons/web_editor/static/shapes/Blocks/02_001.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index 94bb33302be..3cc2a95be92 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -676,7 +676,9 @@ $o-bg-shapes: ('web_editor': ( 'Blobs/11': ('position': center, 'size': 100% auto, 'colors': (1), 'repeat-y': false), 'Blobs/12': ('position': bottom, 'size': 100% auto, 'colors': (1), 'repeat-y': false), 'Blocks/01': ('position': bottom, 'size': 100% auto, 'colors': (1, 3, 5), 'repeat-y': false), + 'Blocks/01_001': ('position': top, 'size': 100% auto, 'colors': (1, 3, 5), 'repeat-y': false), 'Blocks/02': ('position': top, 'size': 100% auto, 'colors': (1, 3, 5), 'repeat-y': false), + 'Blocks/02_001': ('position': bottom, 'size': 100% auto, 'colors': (1, 3, 5), 'repeat-y': false), 'Blocks/03': ('position': bottom, 'size': 100% auto, 'colors': (1, 4), 'repeat-y': false), 'Blocks/04': ('position': bottom, 'size': 100% auto, 'colors': (1, 2, 3, 5), 'repeat-y': false), 'Bold/01': ('position': top, 'size': 100% auto, 'colors': (2), 'repeat-y': false), diff --git a/addons/web_editor/views/snippets.xml b/addons/web_editor/views/snippets.xml index e89025a0363..04dee9e63dc 100644 --- a/addons/web_editor/views/snippets.xml +++ b/addons/web_editor/views/snippets.xml @@ -252,8 +252,8 @@ - - + +