[FIX] website_sale_product_library: move multimedia iframe to price row
This commit is contained in:
parent
0b87a45c6d
commit
25fc146880
2 changed files with 11 additions and 20 deletions
|
|
@ -8,23 +8,14 @@
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Player centrado sobre la imagen de producto (sin ocultado por hover)
|
// Player en la fila de precio/subinfo
|
||||||
.oe_product_cart {
|
.o_multimedia_price_player {
|
||||||
position: relative;
|
width: 220px;
|
||||||
|
max-width: 100%;
|
||||||
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.o_multimedia_image_player {
|
.o_multimedia_price_player iframe,
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
top: 38%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
width: 86%;
|
|
||||||
max-width: 320px;
|
|
||||||
z-index: 4;
|
|
||||||
pointer-events: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.o_multimedia_image_player iframe,
|
|
||||||
.o_multimedia_product_player iframe {
|
.o_multimedia_product_player iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
@ -34,8 +25,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 991.98px) {
|
@media (max-width: 991.98px) {
|
||||||
.o_multimedia_image_player {
|
.o_multimedia_price_player {
|
||||||
width: 92%;
|
width: 100%;
|
||||||
max-width: 300px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@
|
||||||
<span t-if="product.autor"><b><t t-out="product.autor" /></b></span>
|
<span t-if="product.autor"><b><t t-out="product.autor" /></b></span>
|
||||||
</a>
|
</a>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//div[hasclass('o_wsale_product_sub')]" position="after">
|
<xpath expr="//div[hasclass('o_wsale_product_sub')]/div[hasclass('product_price')]" position="after">
|
||||||
<div t-if="product.multimedia_embed_url" class="o_multimedia_image_player">
|
<div t-if="product.multimedia_embed_url" class="o_multimedia_price_player ms-auto">
|
||||||
<iframe
|
<iframe
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
t-att-src="product.multimedia_embed_url"
|
t-att-src="product.multimedia_embed_url"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue