From 76621b965b641b637853d404ac27c54d9db42a14 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Thu, 17 Jul 2025 09:25:41 -0500 Subject: [PATCH] Rationalize admin photo icon layout --- src/admin/AdminPhotosTable.tsx | 51 +++++++++++++++++++--------------- src/photo/sync.ts | 2 +- 2 files changed, 30 insertions(+), 23 deletions(-) diff --git a/src/admin/AdminPhotosTable.tsx b/src/admin/AdminPhotosTable.tsx index 820cc213..466670ab 100644 --- a/src/admin/AdminPhotosTable.tsx +++ b/src/admin/AdminPhotosTable.tsx @@ -63,32 +63,47 @@ export default function AdminPhotosTable({ 'flex flex-col lg:flex-row min-w-0 gap-x-3', opacityForPhotoId(photo.id), )}> - - + {titleForPhoto(photo, false)} - - - - + + + + + {photoNeedsToBeSynced(photo) && + + + } {photo.priorityOrder !== null && {photo.priorityOrder} } - +
- {photoNeedsToBeSynced(photo) && - - - }
{ .join(', '); text.push(`Missing AI Text (${missingFieldsText})`); } - return text.join(' and '); + return text.join(' and ') + '—sync to update'; }; export const getPhotosSyncStatusText = (photos: Photo[]) => {