From 287913ebbfa4d11570f0194355a7843ff7f7ff12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Fri, 12 Nov 2021 10:43:44 +0000 Subject: [PATCH] [FIX] web_editor: fix translate button position The translate button was overlapping the codeview button in the mail template view. task-2683847 closes odoo/odoo#79704 X-original-commit: 8a6de9089bfd77f5fdc6f4a11016906454e442cc Signed-off-by: Antoine Guenet --- addons/web_editor/static/src/js/backend/field_html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web_editor/static/src/js/backend/field_html.js b/addons/web_editor/static/src/js/backend/field_html.js index 16eb7daa79b..5fbde02010f 100644 --- a/addons/web_editor/static/src/js/backend/field_html.js +++ b/addons/web_editor/static/src/js/backend/field_html.js @@ -527,8 +527,8 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, { $button.css({ 'font-size': '15px', position: 'absolute', - right: '+5px', - top: '+5px', + right: odoo.debug && this.nodeOptions.codeview ? '40px' : '5px', + top: '5px', }); this.$el.append($button); if (odoo.debug && this.nodeOptions.codeview) {