[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;
|
||||
}
|
||||
|
||||
// Player centrado sobre la imagen de producto (sin ocultado por hover)
|
||||
.oe_product_cart {
|
||||
position: relative;
|
||||
// Player en la fila de precio/subinfo
|
||||
.o_multimedia_price_player {
|
||||
width: 220px;
|
||||
max-width: 100%;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.o_multimedia_image_player {
|
||||
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_price_player iframe,
|
||||
.o_multimedia_product_player iframe {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
|
|
@ -34,8 +25,8 @@
|
|||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.o_multimedia_image_player {
|
||||
width: 92%;
|
||||
max-width: 300px;
|
||||
.o_multimedia_price_player {
|
||||
width: 100%;
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@
|
|||
<span t-if="product.autor"><b><t t-out="product.autor" /></b></span>
|
||||
</a>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('o_wsale_product_sub')]" position="after">
|
||||
<div t-if="product.multimedia_embed_url" class="o_multimedia_image_player">
|
||||
<xpath expr="//div[hasclass('o_wsale_product_sub')]/div[hasclass('product_price')]" position="after">
|
||||
<div t-if="product.multimedia_embed_url" class="o_multimedia_price_player ms-auto">
|
||||
<iframe
|
||||
loading="lazy"
|
||||
t-att-src="product.multimedia_embed_url"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue