From 44027408a2e5ea5c99cdd56eeded995b2ecb10ea Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Mon, 18 Sep 2023 20:03:50 -0500 Subject: [PATCH] Tweak photo tag layout --- src/photo/PhotoLarge.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/photo/PhotoLarge.tsx b/src/photo/PhotoLarge.tsx index 4397c6d2..b76db149 100644 --- a/src/photo/PhotoLarge.tsx +++ b/src/photo/PhotoLarge.tsx @@ -18,6 +18,8 @@ export default function PhotoLarge({ priority?: boolean prefetchShare?: boolean }) { + const tagsToShow = photo.tags.filter(t => t !== tag); + const renderMiniGrid = (children: JSX.Element) =>
{renderMiniGrid(<> - - {titleForPhoto(photo)} - - {photo.tags.length > 0 && - } +
+ + {titleForPhoto(photo)} + + {tagsToShow.length > 0 && + } +
{photo.make} {photo.model}