Friday, March 7, 2025
1 change · saas-17.4
Resolved issues and error corrections
This fixes a display issue where products without a ribbon could still show a small white triangle on their image. The shop page now properly hides the ribbon area when no ribbon is configured, improving product image presentation.
Original PR description
Versions -------- - saas-17.4+ Steps ----- Unsure. Issue ----- The ribbon element is technically always visible, even if the product has no ribbon. This can lead to CSS shadow being applied to it, resulting in a white triangle in the top right corner of images:  Cause ----- The `_get_position_class` method returns a position, even for empty recordsets, in which case it will return `o_ribbon_right`. Solution -------- If there is no record, return the `d-none` class to properly hide the element. opw-4151902