Skip to content

Commit

Permalink
[FIX] website_sale: dropdown overflow issue
Browse files Browse the repository at this point in the history
Partially revert the 'table-responsive' layout introduced by commit
odoo@5abccc.

The addition of the 'table-responsive' class in commit odoo@5abccc
effectively addressed the overflowing of very long product names without
whitespace. However, it inadvertently introduced a new issue by
partially concealing the "Download" dropdowns for digital products.

To mitigate this problem, this commit disables the
'table-responsive' layout when website_sale is installed.
This adjustment preserves the accessibility of the "Download"
dropdowns while still offering a workaround for accommodating lengthy
product names.

task-3335488 (bugfix)
task-4720 (rd-design)

closes odoo#144680

X-original-commit: ce9c5ff
Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
  • Loading branch information
stefanorigano committed Dec 8, 2023
1 parent 292dfc2 commit 6e006c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions addons/website_sale/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2516,12 +2516,15 @@
</template>

<template id="sale_order_portal_content_inherit_website_sale" name="Orders Followup Products Links" inherit_id="sale.sale_order_portal_content">
<xpath expr="//section[@id='details']//div[hasclass('table-responsive')]" position="attributes">
<attribute name="class" remove="table-responsive" separator=" "/>
</xpath>
<xpath expr="//section[@id='details']//td[@id='product_name']/*" position="replace">
<a t-if="line.product_id.website_published" t-att-href="line.product_id.website_url">
<a t-if="line.product_id.website_published" t-att-href="line.product_id.website_url" class="d-block text-wrap" style="max-width: 35vw">
<span t-field="line.name" />
</a>
<t t-if="not line.product_id.website_published">
<span t-field="line.name" />
<span t-field="line.name" class="d-block text-wrap" style="max-width: 35vw"/>
</t>
</xpath>
</template>
Expand Down

0 comments on commit 6e006c0

Please sign in to comment.