From 15a19250934fdcec2cbd69878c0e156550c63394 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 2 Oct 2025 13:34:30 +0000 Subject: [PATCH] Refactor: Improve mobile photo gallery view --- src/components/upload/EntityPhotoGallery.tsx | 54 ++++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/components/upload/EntityPhotoGallery.tsx b/src/components/upload/EntityPhotoGallery.tsx index 48cad962..28b9e470 100644 --- a/src/components/upload/EntityPhotoGallery.tsx +++ b/src/components/upload/EntityPhotoGallery.tsx @@ -102,9 +102,9 @@ export function EntityPhotoGallery({ if (showUpload) { return (
-
-

Upload Photos for {entityName}

-
@@ -120,10 +120,10 @@ export function EntityPhotoGallery({ if (loading) { return ( -
+
- - Loading photos... + + Loading photos...
); @@ -132,30 +132,30 @@ export function EntityPhotoGallery({ return (
{/* Header with Upload and Management Buttons */} -
+
-

Photo Gallery

-

+

Photo Gallery

+

Share your photos of {entityName}

-
+
{isModerator && photos.length > 0 && ( - )} - @@ -173,23 +173,23 @@ export function EntityPhotoGallery({ {/* Photo Grid */} {photos.length > 0 ? ( -
+
{photos.map((photo, index) => ( {photo.title handlePhotoClick(index)} /> {(photo.title || photo.caption) && ( -
+
{photo.title && ( -

{photo.title}

+

{photo.title}

)} {photo.caption && ( -

+

{photo.caption}

)} @@ -200,22 +200,22 @@ export function EntityPhotoGallery({ ))}
) : ( -
- -

No Photos Yet

-

+

+ +

No Photos Yet

+

Be the first to share photos of {entityName}!

-