From 074b4b7281f259599cd0edde9c5de806bc2c838c Mon Sep 17 00:00:00 2001 From: snt Date: Sun, 29 Mar 2026 17:25:03 +0200 Subject: [PATCH] Move multimedia player to bottom of product card, after price/cart buttons --- .../static/src/scss/custom.scss | 13 +++++-------- .../views/website_sale_views.xml | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/website_sale_product_library/static/src/scss/custom.scss b/website_sale_product_library/static/src/scss/custom.scss index bb47b3d..985ea53 100644 --- a/website_sale_product_library/static/src/scss/custom.scss +++ b/website_sale_product_library/static/src/scss/custom.scss @@ -8,21 +8,18 @@ border-radius: 6px; } -// El div.oe_product_image ya tiene position: relative, el player va dentro +// El player se inserta al final de o_wsale_product_information, en el flujo normal del flex .o_multimedia_hover_player { - position: absolute; - left: 0; - right: 0; - bottom: 0; - z-index: 4; + overflow: hidden; + max-height: 0; opacity: 0; pointer-events: none; - transition: opacity 0.2s ease-in-out; - padding: 0; + transition: max-height 0.25s ease-in-out, opacity 0.2s ease-in-out; } .oe_product_cart:hover .o_multimedia_hover_player, .o_multimedia_hover_player:hover { + max-height: 60px; opacity: 1; pointer-events: auto; } diff --git a/website_sale_product_library/views/website_sale_views.xml b/website_sale_product_library/views/website_sale_views.xml index 78a39e4..2a0c6a9 100644 --- a/website_sale_product_library/views/website_sale_views.xml +++ b/website_sale_product_library/views/website_sale_views.xml @@ -13,7 +13,7 @@ - +