Files
odoo_source/addons/web_editor
qsm-odoo 9c1602d917 [FIX] web_editor: properly remove img-thumbnail class on media change
Following [1], it was discovered that, before this commit, the
img-thumbnail class was properly removed when turning an image into an
icon, document or video but not when turning an icon into an image,
document or video. The working image case actually worked by chance as
we remove all classes starting by img-. The "thumbnail" class was
actually removed instead of the "img-thumbnail" one.

In master, this fixes the issue by adding "img-thumbnail" instead of
"thumbnail" to the list of classes to remove. We also do not need to
consider all classes starting by "img-" anymore.

[1]: https://github.com/odoo/odoo/pull/95287#pullrequestreview-1031639109

closes odoo/odoo#95616

X-original-commit: 55ba93da587773fedae64b2911ddc8d04482d94b
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-07-08 19:52:43 +02:00
..
…
…
2022-07-07 13:30:24 +02:00
…