summaryrefslogtreecommitdiff
path: root/addons/web_editor/static
diff options
context:
space:
mode:
authorstefanorigano (SRI) <sri@odoo.com>2020-08-14 14:13:13 +0000
committerXavier-Do <xdo@odoo.com>2020-08-27 17:07:34 +0000
commit23b8ff9ab4e6609fcfb37da6975ad54315d3e701 (patch)
tree914690be878a13b90aedf2d0751a54551a0cbf85 /addons/web_editor/static
parenteb34a7841978aea5c3f2d04121fd0e6adda94e3b (diff)
[IMP] web_editor: limit dropdown's thumbs size
Part of https://github.com/odoo/odoo/pull/56427 task-2264627
Diffstat (limited to 'addons/web_editor/static')
-rw-r--r--addons/web_editor/static/src/scss/wysiwyg_snippets.scss8
1 files changed, 8 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 87ae09fa0b0..e50a728c93b 100644
--- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
+++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
@@ -394,6 +394,10 @@ body.editor_enable.editor_has_snippets {
@include we-icon-button('\f0d7');
text-align: left;
+ > img, > svg {
+ max-width: 100%;
+ }
+
+ * {
display: none !important;
border: $o-we-sidebar-content-field-dropdown-border-width solid $o-we-sidebar-content-field-dropdown-border-color;
@@ -648,6 +652,10 @@ body.editor_enable.editor_has_snippets {
> div {
line-height: $o-we-sidebar-content-field-dropdown-item-height;
+
+ img, svg {
+ max-width: 100%;
+ }
}
&:not(.d-none) ~ we-button {