summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDidier (did) <did@odoo.com>2020-11-20 10:07:21 +0000
committerDidier (did) <did@odoo.com>2020-11-20 10:10:05 +0000
commit352e868f320344b06c4d44fd2df452080446dbb6 (patch)
treea1a125e425a4db8372ccacc07c8d5d767af4ab89 /addons
parente07757b1e941c33fd76f79aaafe8398f611721d2 (diff)
[FIX] mail: fix image width inside the chatter
Web editor hard code the width inside the image html. This `max-width` constraint the image inside the chatter and avoid unwanted horizontal scrollbar. task-2389432 closes odoo/odoo#62073 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/static/src/components/message/message.scss5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/message/message.scss b/addons/mail/static/src/components/message/message.scss
index 8fe3d7a2219..c131fe24aba 100644
--- a/addons/mail/static/src/components/message/message.scss
+++ b/addons/mail/static/src/components/message/message.scss
@@ -56,6 +56,11 @@
> p:last-of-type {
margin-bottom: 0;
}
+
+ img {
+ max-width: 100%;
+ height: auto;
+ }
}
.o_Message_core {