From 200f83067c477f2ed498ac899a8dbd298f65f090 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 3 Jul 2025 17:19:57 -0500 Subject: [PATCH] Display a placeholder graphic when a group image isn't available --- src/pages/GroupDetail.tsx | 22 +++++++++++----------- src/pages/GroupGuidelines.tsx | 23 +++++++++++------------ 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/src/pages/GroupDetail.tsx b/src/pages/GroupDetail.tsx index 417b9212..211a0c89 100644 --- a/src/pages/GroupDetail.tsx +++ b/src/pages/GroupDetail.tsx @@ -550,11 +550,17 @@ export default function GroupDetail() {
- {imageLoading && ( + {imageLoading && image && ( )} - {/* Check if the image URL is likely a video */} - {image && image.match(/\.(mp4|webm|ogg|mov)$/i) ? ( + {!image ? ( + // Show a nice gradient background when no image is provided +
+
+ +
+
+ ) : image.match(/\.(mp4|webm|ogg|mov)$/i) ? (