b71b784c986371171a954780a2da860648d5a1b4
This commit fixes and improves the suggested width that we compute for images optimizations. Before, images displayed outside .container elements were resized to their container size. As a result logos were resized to 2.5rem (40px). Now, it handles these scenarios : - The image is in the navbar, it is a logo - The image is in a container/container-small - The image is in a container-fluid - The image is outside a container Values are read from the css instead of being hardcoded. Note: another issue remains with our resizing method. Drawing on a canvas is not performant enough when there are large differences between the width and the resize width. A solution could be to use createImageBitmap for the resize, but it is not supported by enough browsers. In the meantime, imageSmoothing was enabled on the context. Note 2: this also fixes rounding issues when computing the optimized width which may break the UI update as comparing the integer and floating value returned false. task-2506205 closes odoo/odoo#79983 X-original-commit: 8355c10676e1dbb668702337863218bdda7c23dc Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: qsm-odoo <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%