Fix xpath: use oe_product_image_link inside products_item for multimedia hover player

This commit is contained in:
snt 2026-03-29 17:14:32 +02:00
parent 5d99dbeaeb
commit d3a4cfc4a6
2 changed files with 6 additions and 8 deletions

View file

@ -8,24 +8,21 @@
border-radius: 6px;
}
.oe_product_cart {
position: relative;
}
// El div.oe_product_image ya tiene position: relative, el player va dentro
.o_multimedia_hover_player {
position: absolute;
left: 0;
right: 0;
bottom: 0.75rem;
bottom: 0;
z-index: 4;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease-in-out;
padding: 0 0.5rem;
padding: 0;
}
.oe_product_cart:hover .o_multimedia_hover_player,
.oe_product_cart .o_multimedia_hover_player:hover {
.o_multimedia_hover_player:hover {
opacity: 1;
pointer-events: auto;
}
@ -34,6 +31,7 @@
.o_multimedia_product_player iframe {
width: 100%;
min-width: 0;
display: block;
}
@media (max-width: 991.98px) {

View file

@ -13,7 +13,7 @@
<span t-if="product.autor"><b><t t-out="product.autor" /></b></span>
</a>
</xpath>
<xpath expr="//div[contains(@class, 'o_wsale_product_grid_wrapper')]" position="after">
<xpath expr="//a[hasclass('oe_product_image_link')]" position="after">
<div t-if="product.multimedia_embed_url" class="o_multimedia_hover_player">
<iframe
loading="lazy"