From e4c1013de9d834fdd6fcf20c510dee31aa15a355 Mon Sep 17 00:00:00 2001 From: subnub Date: Thu, 20 Feb 2025 19:47:23 -0500 Subject: [PATCH] improved media viewer ui --- src/components/Medias/Medias.tsx | 9 +++------ src/components/MoverPopup/MoverPopup.tsx | 18 +++++++++++------- .../PhotoViewerPopup/PhotoViewerPopup.tsx | 6 +++--- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/components/Medias/Medias.tsx b/src/components/Medias/Medias.tsx index 5a92e7f..9cd174a 100644 --- a/src/components/Medias/Medias.tsx +++ b/src/components/Medias/Medias.tsx @@ -95,11 +95,8 @@ const Medias = memo( })(); return ( -
-
+
+

{title}

@@ -139,7 +136,7 @@ const Medias = memo( {!isLoadingFiles && (
diff --git a/src/components/MoverPopup/MoverPopup.tsx b/src/components/MoverPopup/MoverPopup.tsx index ef350cd..f653dff 100644 --- a/src/components/MoverPopup/MoverPopup.tsx +++ b/src/components/MoverPopup/MoverPopup.tsx @@ -177,24 +177,28 @@ const MoverPopup = () => { setSelectedFolder(parentList[parentList.length - 1]); }; - const closeMoverModal = (e: React.MouseEvent) => { - const target = e.target as HTMLElement; - if (target.id !== "outer-wrapper") return; + const closeModal = () => { setAnimate(false); setTimeout(() => dispatch(resetMoveModal()), 200); }; + const wrapperClick = (e: React.MouseEvent) => { + const target = e.target as HTMLElement; + if (target.id !== "outer-wrapper") return; + closeModal(); + }; + return (
-
+
dispatch(resetMoveModal())} + className="w-6 h-6 cursor-pointer text-white mr-4" + onClick={closeModal} />
diff --git a/src/components/PhotoViewerPopup/PhotoViewerPopup.tsx b/src/components/PhotoViewerPopup/PhotoViewerPopup.tsx index 9ef09a0..36297b8 100644 --- a/src/components/PhotoViewerPopup/PhotoViewerPopup.tsx +++ b/src/components/PhotoViewerPopup/PhotoViewerPopup.tsx @@ -336,13 +336,13 @@ const PhotoViewerPopup: React.FC = memo((props) => {
-
+
{isThumbnailLoading && !thumbnailError && } {!file.metadata.isVideo && (