From e0d2ee2432e2b398ba5fa35c4700935db9bb1072 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 9 Sep 2023 18:36:35 -0500 Subject: [PATCH] Make admin page mobile friendly --- src/app/(auth-state)/admin/photos/page.tsx | 68 +++++++++++++--------- src/components/SubmitButtonWithStatus.tsx | 6 +- 2 files changed, 43 insertions(+), 31 deletions(-) diff --git a/src/app/(auth-state)/admin/photos/page.tsx b/src/app/(auth-state)/admin/photos/page.tsx index 937bff95..d0e12ede 100644 --- a/src/app/(auth-state)/admin/photos/page.tsx +++ b/src/app/(auth-state)/admin/photos/page.tsx @@ -58,26 +58,31 @@ export default async function AdminPage() { )} photo={photo} /> - - {photo.title || - - Untitled - } - {photo.priorityOrder !== null && - - {photo.priorityOrder} - } - -
- {photo.takenAtNaive} +
+ + {photo.title || + + Untitled + } + {photo.priorityOrder !== null && + + {photo.priorityOrder} + } + +
+ {photo.takenAtNaive} +
{children} @@ -127,17 +132,23 @@ function EditButton ({ href: string, label?: string, }) { - return - - {label} - ; + return ( + + + + {label} + + + ); } function DeleteButton () { return ×} > Delete @@ -174,7 +185,6 @@ function BlobUrls ({ > {pathForBlobUrl(url)} -
{pending ? : icon} } - {children} + + {children} + ); };