Skip to content
Snippets Groups Projects
Commit 65ca2b2c authored by Sébastien Theys's avatar Sébastien Theys
Browse files

[FIX] mail: prevent from stretching small image attachment


task-2447939

closes odoo/odoo#65074

Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
parent 27d251a1
Branches
Tags
No related merge requests found
......@@ -96,7 +96,8 @@ class Attachment extends Component {
} else {
size = '160x160';
}
return `background-image:url(/web/image/${this.attachment.id}/${size}/?crop=true);`;
// background-size set to override value from `o_image` which makes small image stretched
return `background-image:url(/web/image/${this.attachment.id}/${size}/?crop=true); background-size: auto;`;
}
//--------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment