From eca6ab3e953ed5844574e5c1dc520cc2ddbd8c29 Mon Sep 17 00:00:00 2001 From: pollutri Date: Thu, 7 May 2026 18:10:58 +0200 Subject: [PATCH] Video Fullscreen fix --- components/PublicGrid.tsx | 42 +++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/components/PublicGrid.tsx b/components/PublicGrid.tsx index 8161a5f..532f28b 100644 --- a/components/PublicGrid.tsx +++ b/components/PublicGrid.tsx @@ -6,10 +6,10 @@ const isVideoUrl = (url: string) => /\.(mp4|webm|mov|m4v|ogv)(\?|$)/i.test(url); function MediaCarousel({ items, - onImageClick, + onMediaClick, }: { items: MediaItem[]; - onImageClick?: (index: number) => void; + onMediaClick?: (index: number) => void; }) { const [current, setCurrent] = useState(0); const touchStartX = useRef(null); @@ -70,21 +70,35 @@ function MediaCarousel({ className={`absolute inset-0 transition-opacity duration-300 ${isActive ? 'opacity-100' : 'opacity-0 pointer-events-none'}`} > {video ? ( -