[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 <age@odoo.com>
This commit is contained in:
Sébastien Geelen (sge)
2021-11-12 13:35:54 +00:00
parent e1a55d8324
commit 287913ebbf
@@ -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) {