Wednesday, January 17, 2024
2 changes · 17.0
Enhancements to existing features
The eCommerce category scrollbar is now easier to use by increasing its grab area when shoppers hover over it. This small usability improvement helps customers navigate product categories more comfortably with a mouse.
Original PR description
Issue: The eCommerce categories scrollbar is too small/ not easy to grab with your mouse. Fix: The scrollbar height is increased on hover to increase the grabbing area task-3371760 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update refines how grid images with links are handled in the website editor. The changes remove unnecessary CSS overrides and simplify the code logic by using more reliable detection methods. These improvements make the code cleaner and easier to maintain without affecting how the feature works for users.
Original PR description
Commit [1] added the support for images with a link set on them in grid mode. As a follow up, this commit does the following: - Removes the `!important` from the grid image anchor CSS rules, as they were not really needed. - Checks if the image has a closest `o_grid_item_image` column instead of checking the parent in the `GridImage` options. Indeed, this class already guarantees that the image is well a grid image; we can therefore simplify the code. It also removes a comment that was forgotten in commit [2]. [1]: https://github.com/odoo/odoo/commit/085d70cea571ea80c141ac6005e8bd8333bd269f [2]: https://github.com/odoo/odoo/commit/d8c374e3e6b31bf88aa42952aadf3379936f7600 related to opw-3580128 Forward-Port-Of: odoo/odoo#148152