[FIX] web_editor: fix width of SVG images in media dialog
This solves an issue with svg images from Isometric for example. The media dialog assigns width to its displayed images thanks to the flex-basis and flex-grow properties of their container, based on the aspect ratio of each image. This was done correctly for SVG images too. However, after assigning a nice space for a specific SVG image, the image itself was not made to fill that assigned space... it only worked if the natural width of the image was higher than the assigned space. This was of course more obvious with SVG files with no intrinsic width as they would simply not appear. closes odoo/odoo#60305 X-original-commit: 585aed8b49b98d014db1e06c11e42b0d38a0b8c6 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: qsm-odoo <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
co-authored by
qsm-odoo
parent
1e4e890eca
commit
f0eda15108
@@ -224,7 +224,7 @@ body .modal {
|
||||
@extend %o-preview-alpha-background;
|
||||
|
||||
&, > img {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user