summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml/wysiwyg.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-07-06 15:22:12 +0000
committerqsm-odoo <qsm@odoo.com>2020-07-06 15:47:06 +0000
commit94b59b1972e1a18e18dfcd6c2ded495391380b9a (patch)
treebcc8c43f5081a97189df18fda94deaab62f733b0 /addons/web_editor/static/src/xml/wysiwyg.xml
parentd6a23e49e2cf73c0fc7db9e348fc51e0d81ca14c (diff)
[FIX] web, web_editor, *: review chess-like bg for transparency preview
*: website The style to achieve the chess-like bg result was duplicated at many places. The 'web' app was also actually using an image from the 'web_editor' app (we can live with it in stable as web_editor always comes with web in auto_install but this was still a mistake). closes odoo/odoo#54154 Also: fix some layout issue in the colorpicker widget. Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/xml/wysiwyg.xml')
-rw-r--r--addons/web_editor/static/src/xml/wysiwyg.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/xml/wysiwyg.xml b/addons/web_editor/static/src/xml/wysiwyg.xml
index 1fe90b044d6..714d0913e5d 100644
--- a/addons/web_editor/static/src/xml/wysiwyg.xml
+++ b/addons/web_editor/static/src/xml/wysiwyg.xml
@@ -306,9 +306,9 @@
<t t-name="wysiwyg.widgets.image.existing.attachment">
<t t-set="isOptimized" t-value="!!attachment.original_id"/>
- <div t-attf-class="o_existing_attachment_cell position-relative bg-light #{isOptimized and 'o_we_attachment_optimized d-none'}" t-att-data-id="attachment.id">
+ <div t-attf-class="o_existing_attachment_cell position-relative bg-light #{isOptimized and 'o_we_attachment_optimized d-none' or ''} align-items-center justify-content-center" t-att-data-id="attachment.id">
<t t-call="wysiwyg.widgets.file.existing.remove"/>
- <div t-attf-class="d-flex align-items-center justify-content-center h-100 w-100">
+ <div class="o_we_media_dialog_img_wrapper">
<!-- 256 is 2 * ImageWidget.MIN_ROW_HEIGHT, hopefully the highest display width of any image -->
<img class="img img-fluid o_we_attachment_highlight" t-attf-src="#{attachment.image_src}?height=256" t-att-alt="attachment.name" t-att-title="attachment.name"/>
</div>