From 77f1d9db2c4ad938f879c58cd6a2aacf97bd56e1 Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sun, 3 May 2026 22:16:37 +0200 Subject: [PATCH] fix: icone --- frontend-prep/index.html | 3 +-- frontend-prep/src/components/ProductCard.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend-prep/index.html b/frontend-prep/index.html index b243debe..5c9b2d49 100644 --- a/frontend-prep/index.html +++ b/frontend-prep/index.html @@ -3,8 +3,7 @@ - - + diff --git a/frontend-prep/src/components/ProductCard.tsx b/frontend-prep/src/components/ProductCard.tsx index 4fe92e53..1b233c45 100644 --- a/frontend-prep/src/components/ProductCard.tsx +++ b/frontend-prep/src/components/ProductCard.tsx @@ -1,4 +1,5 @@ import { useState } from "react"; +import { createPortal } from "react-dom"; import { useNavigate } from "react-router-dom"; import { useCart } from "../context/useCart"; import { Camera, Info, X } from "lucide-react"; @@ -218,8 +219,8 @@ function ProductCard({ )} - {/* ✨ Modal vidéo */} - {showVideo && videoUrl && ( + {/* ✨ Modal vidéo — rendu via Portal pour éviter le clipping du transform:scale sur .product-card */} + {showVideo && videoUrl && createPortal(
-
+ , + document.body )} );