odoo/odoo#183013
Created by Website, Soukéina Bojabza (sobo)
Merged
at 9daebea23afae232c6e186b7c89c1191016b8655
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
Linked pull requests
- label
- odoo-dev:17.0-grid_image_img_fluid-sobo
- head
- be4959dde3538f0368bc773af74c2c5e5bbf6dc9
- merged
- 1 year ago by Quentin Smetz (qsm)
| odoo/odoo | odoo/design-themes | |
|---|---|---|
| 17.0 | #183013 | #984 |
| saas-17.2 | #185398 | #997 |
| saas-17.4 | #185404 | #998 |
| 18.0 | #185408 | #999 |
| saas-18.2 | ||
| saas-18.3 | ||
| saas-18.4 | ||
| 19.0 | ||
| saas-19.1 | ||
| master | #185715 | #1003 |
[FIX] web_editor: force the grid images maximum width to 100%
In some theme customizations, images were replaced by new ones without specifying the usual image classes img img-fluid mx-auto. While two of them could be ignored, this is not the case of img-fluid, which limits the maximum width of an image to 100%. Without it, grid images in mobile view are overflowing, because the rule forcing their width to 100% has been moved in commit 1, to be applied on the desktop view only.
This commit fixes this issue by adding a rule for grid images, limiting their width to 100%. The problematic themes will also be fixed in the associated design PR.