diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-10-21 10:02:17 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-10-22 09:12:48 +0000 |
| commit | 3ba2816f8980e48f99d942f8dcbd096d76b58fda (patch) | |
| tree | a8e87c8c8be10efffdcb3bd39e313ccd9933b144 /addons/web_editor/static/src/scss | |
| parent | a8c4ca8a942d94557db5b95f42344fee71faf6e2 (diff) | |
[FIX] web_editor: restore overlay top options on top of the page
When the overlay covers a snippet, if that snippet is at the top of
the page, the options at the top of the overlay are hidden. A system
was made to make them change position in that case but this was broken
by [1], leaving the toggling of a class for that case but without its
related scss.
This commit restores that scss and also improves the detection of that
problematic case.
[1]: https://github.com/odoo/odoo/commit/4f27e52cabb77b8b1a9637a11185ddf882adc9af
closes odoo/odoo#60464
X-original-commit: 97f11571f9e3deacc9b9e1dc0d2cc8fc6b93f15c
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/scss')
| -rw-r--r-- | addons/web_editor/static/src/scss/wysiwyg_snippets.scss | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss index b5b24627ad3..e3116ceddf8 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss @@ -1709,6 +1709,12 @@ body.editor_enable.editor_has_snippets { } } + &.o_top_cover > .o_handles > .o_overlay_options_wrap { + top: auto; + bottom: -$o-we-handles-offset-to-hide; + transform: translate(-50%, 110%); + } + &.o_we_overlay_preview { pointer-events: none; |
