f1a2fe43a42f9adb920df80f474362cffd003c0d
The "grid images" are grid items that only contain an image (i.e. the image is alone in its column). This distinction with other images in grid mode allows to set the `object-fit` CSS property to `cover` so they take the whole space of the grid item (see commits [1] and [2]). In commit [3], the "Position" option has been added, allowing to switch between the `cover` and `contain` values for this property, to have the possibility to still choose to display the entire image, so it can keep its ratio. However, only the images that are direct children of the column have been considered when checking if it was a grid image and in the related CSS rules. This means that an image with a link cannot be one, since the image is the child of an anchor element `<a>` in that case. It can therefore not be set as "cover" or have the "Position" option. This commit adds the support for images with a link set on them, so they can be considered as grid images too. Steps to reproduce: - Drop the "Masonry" snippet. - Click on the image and set a link on it. => The image is now "contain" and the "Position" option disappeared from the right panel so we cannot change it. [1]: https://github.com/odoo/odoo/commit/e9c7e020daf88022d6e02de0a5620074e8417b5a [2]: https://github.com/odoo/odoo/commit/d8c374e3e6b31bf88aa42952aadf3379936f7600 [3]: https://github.com/odoo/odoo/commit/faf19ef7f87fc043fb9a814516e01b8eeafd9b61 opw-3580128 closes odoo/odoo#148022 X-original-commit: 085d70cea571ea80c141ac6005e8bd8333bd269f Signed-off-by: Romain Derie (rde) <rde@odoo.com> Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%