diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js index 46b68b60bda..84581ef0d94 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js @@ -1954,6 +1954,7 @@ export class OdooEditor extends EventTarget { avatarElement.append(image); image.onload = () => avatarElement.style.removeProperty('display'); image.setAttribute('src', clientAvatarUrl); + image.classList.add('o_object_fit_cover'); } // Avoid re-appending the element in the dom. if (!avatarElement.parentElement) {