Fix broken emails due to big images
-
Add properties
table-layout: fixed; width: 100%;
to alltable
elements. -
Add properties
max-width: 100%; height: unset;
to allimg
elements coming in themessage_body
. Check BeautifulSoup and this example https://stackoverflow.com/questions/48111052/beautifulsoup-change-specific-style-attribut/53635461
Details:
Example: https://notifications.web.cern.ch/channels/3850aad0-a252-4f81-a922-02377c87eeee/notifications/4e4407be-eece-434a-8708-7920e8dde80d How it looks:
![](/push-notifications/notifications-consumer/uploads/da3a09e343078b6ef2a510bb19250a67/Screenshot_2021-05-21_at_11.50.43.png)
How it should look:
![](/push-notifications/notifications-consumer/uploads/e3caab4ba612fc3836c4252d4161f558/Screenshot_2021-05-21_at_11.50.27.png)
Edited by Carina Antunes