summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/scss
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2021-02-24 07:09:26 +0000
committerqsm-odoo <qsm@odoo.com>2021-03-05 15:18:11 +0000
commit84417a174bc2bb76730cc89783d3426a3a3b07d9 (patch)
treed05bf33cfb93d55ef72f63c85f30a7a9c5f22b45 /addons/web_editor/static/src/scss
parent2cf5e8fb62f5ec88d13ad613c76f65fab8b50d65 (diff)
[FIX] web_editor: adapt warning when quality options are unavailable
Previously, when quality options were not available, the option would simply not be displayed. User feedback suggests that this is confusing, as for example, in the case of modifying the image in a t-field, quality options would not be available when starting the editor, but would become available when picking the image again in the media-dialog. Some leftover code allowed to display a warning about why the quality options were not available in the case where the image is not local to the database. This warning has been adapted to display a more informative message about why quality options are not available, as well as suggest a solution: - External image => download the image and upload it in odoo - t-field => "You need to choose this image again in the media-dialog or reupload it to have access to quality options" - Images that are in an unsupported format (anything other than PNG or JPEG) => short explanation that quality options are only available on PNG and JPEG images. task-2466819 part of odoo/odoo#66732
Diffstat (limited to 'addons/web_editor/static/src/scss')
-rw-r--r--addons/web_editor/static/src/scss/wysiwyg_snippets.scss4
1 files changed, 4 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 d107f9cf489..3e4eb922d3a 100644
--- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
+++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
@@ -1283,6 +1283,10 @@ body.editor_enable.editor_has_snippets {
}
}
+ .o_we_external_warning {
+ margin-top: $o-we-sidebar-content-field-spacing;
+ }
+
.o_we_tag {
padding: ($o-we-sidebar-content-field-label-spacing / 2) $o-we-sidebar-content-field-label-spacing;
border-radius: 5px;