diff options
| author | fja-odoo <fja@odoo.com> | 2020-01-22 16:50:54 +0000 |
|---|---|---|
| committer | fja-odoo <fja@odoo.com> | 2020-01-23 16:09:30 +0000 |
| commit | 876a7aad0b2b30889ee5768459d1b2f0a0c1a33f (patch) | |
| tree | aff4d201404f40210dc5b88513487c94a5ab5f69 /addons/web_editor/static | |
| parent | 4ea5514230cf5e2c884205e6ba8205bc6efd1afe (diff) | |
[FIX] web_editor: fix move snippet hiding
The move snippet arrows where not hiding properly when the target was
not movable.
closes odoo/odoo#43864
X-original-commit: ab32882ff0ecaf9995e52b062b880cd8ea0b6efa
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.editor.js | 2 | ||||
| -rw-r--r-- | addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 4 | ||||
| -rw-r--r-- | addons/web_editor/static/src/xml/snippets.xml | 5 |
3 files changed, 6 insertions, 5 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 57ab6c37b73..7fc439e88a2 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -96,7 +96,7 @@ var SnippetEditor = Widget.extend({ }, }); } else { - this.$('.o_move_handle').addClass('d-none'); + this.$('.o_overlay_move_options').addClass('d-none'); $customize.find('.oe_snippet_clone').addClass('d-none'); } diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index b8e87ff69f5..c6d1e8fa394 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -837,7 +837,7 @@ body.editor_enable.editor_has_snippets { } } - > .o_overlay_options { + > .o_overlay_move_options { @include o-position-absolute($o-we-handles-offset-to-hide, $left: 50%); transform: translate(-50%, -110%); display: flex; @@ -928,7 +928,7 @@ body.editor_enable.editor_has_snippets { } } - .o_overlay_options { + .o_overlay_move_options { display: none; } } diff --git a/addons/web_editor/static/src/xml/snippets.xml b/addons/web_editor/static/src/xml/snippets.xml index 3a17fc2bcf2..77e4686ae7e 100644 --- a/addons/web_editor/static/src/xml/snippets.xml +++ b/addons/web_editor/static/src/xml/snippets.xml @@ -9,8 +9,9 @@ <div class="o_handle w readonly"/> <div class="o_handle s readonly"/> - <!-- Overlay button-like handle to drag and drop --> - <div class="o_overlay_options"> + <!-- Overlay move specific section --> + <div class="o_overlay_move_options"> + <!-- Button-like handle to drag and drop --> <div class="o_move_handle"/> </div> </div> |
