From 42cde5cfdbdd5af714b4d0b0c6fdc2317ae3a9b5 Mon Sep 17 00:00:00 2001 From: Benedek Robert George Date: Thu, 16 May 2024 16:26:39 +0300 Subject: [PATCH 1/3] fix: video player of nft media on mobile opening to full screen --- src/components/ImageSlider.tsx | 22 ++++++++++++++++++++-- src/components/NftMediaComponent.tsx | 6 ++++-- src/components/ThreeDCard.tsx | 4 +++- src/pages/Account/MyListed/index.tsx | 4 ++-- 4 files changed, 29 insertions(+), 7 deletions(-) diff --git a/src/components/ImageSlider.tsx b/src/components/ImageSlider.tsx index a29d2f26..0ecdf0a7 100644 --- a/src/components/ImageSlider.tsx +++ b/src/components/ImageSlider.tsx @@ -56,7 +56,16 @@ const ImageSlider: React.FC = (props) => { position: "absolute", }}> {media[imageIndex].type.includes("video") ? ( - + ) : ( )} @@ -77,7 +86,16 @@ const ImageSlider: React.FC = (props) => { setImageIndex(nextImageIndex); }}> {media[nextImageIndex].type.includes("video") ? ( - + ) : ( )} diff --git a/src/components/NftMediaComponent.tsx b/src/components/NftMediaComponent.tsx index e5f88d92..d6f8bff6 100644 --- a/src/components/NftMediaComponent.tsx +++ b/src/components/NftMediaComponent.tsx @@ -16,8 +16,10 @@ const NftMediaComponent: React.FC = (props) => { {nftMedia.length === 0 && } {nftMedia.length === 1 ? (
- {nftMedia[0].fileType === "video/mp4" ? ( -