dc140ef1159b104d6c01abffbdd9048eab96e153
As a fix, this introduces a new option for images in grid mode. When an image is alone in a column which later becomes a grid item, or when an image is directly added as a grid item via the dedicated option, the image used `object-fit: cover` so that when the image is resized as a grid item, it fits the dimensions of the selected grid area. This confused some users as the image did not appear the same depending on the screen size. Indeed, if an image is set to take 5 columns as width and 3 rows as height, it does not ensure the ratio in pixels to stay the same depending on the screen size: the grid is always made of 12 columns (so the width of each column depends on the screen width), while the rows are always 50px tall. We could enforce the ratio of grid items to stay the same or limit the ratio loss by reducing the 50px height on smaller breakpoints but that would actually increase another problem: for colored text grid items, their text would more easily overflow their fixed area. In the end, using the grid mode is about compromises, even if it allows to achieve nice things and to have more freedom. This commit although adds a new option to mitigate the issue for images: users now have the possibility to switch the default "cover" mode of grid images to "contain": in that mode, the whole image will always be visible (and thus keeps the same ratio) and is just "contained" in the grid area which is selected as dimension. opw-3069234 closes odoo/odoo#107172 X-original-commit: faf19ef7f87fc043fb9a814516e01b8eeafd9b61 Signed-off-by: Quentin Smetz (qsm) <qsm@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%