[IMP] mail: wrong image size on mail preview on mobile

Before this commit, the displayed images with 'o_mail_preview_image'
class were not correctly displayed (some icon were distorted).

Note that this is a minor issue that was already present on older versions.

closes odoo/odoo#37161

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
Romain Estievenart
2019-10-07 12:38:55 +00:00
parent 6343bc7797
commit b5bc4dd46a
+4 -2
View File
@@ -356,11 +356,13 @@
border-bottom: 1px solid gray('400');
}
.o_mail_preview_image {
display: flex;
align-items: center;
flex: 0 0 auto;
position: relative;
> img {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
border-radius: 50%;
object-fit: cover;
}