From 783a4f19880f88d8b4d9fccf5303af06e169730f Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 25 Feb 2025 23:15:17 -0600 Subject: [PATCH] Refine admin UI --- src/admin/AdminAppInfoIcon.tsx | 4 +++- src/admin/AdminInfoPage.tsx | 2 +- src/admin/AdminOutdatedClient.tsx | 10 +++++++--- src/components/Container.tsx | 18 +++++++++--------- src/components/more/MoreMenuItem.tsx | 6 +++--- 5 files changed, 23 insertions(+), 17 deletions(-) diff --git a/src/admin/AdminAppInfoIcon.tsx b/src/admin/AdminAppInfoIcon.tsx index 4cd70191..8cd3c4b3 100644 --- a/src/admin/AdminAppInfoIcon.tsx +++ b/src/admin/AdminAppInfoIcon.tsx @@ -27,7 +27,9 @@ export default function AdminAppInfoIcon({ size={size === 'large' ? 8 : 7} className={clsx( 'absolute', - 'top-[1.5px] right-[0.5px]', + size === 'large' + ? 'top-[1.5px] right-[0.5px]' + : 'top-[1px] right-[-0.5px]', insightIndicatorStatus === 'blue' ? 'text-blue-500' : 'text-amber-500', diff --git a/src/admin/AdminInfoPage.tsx b/src/admin/AdminInfoPage.tsx index cb62b1ed..94ef0538 100644 --- a/src/admin/AdminInfoPage.tsx +++ b/src/admin/AdminInfoPage.tsx @@ -39,7 +39,7 @@ export default function AdminInfoPage({ href={path} className={clsx( page === titleShort - ? 'underline underline-offset-10 decoration-[1.5px]' + ? 'underline underline-offset-10 decoration-2' : 'text-dim', 'px-1 py-0.5 rounded-md', )} diff --git a/src/admin/AdminOutdatedClient.tsx b/src/admin/AdminOutdatedClient.tsx index c108c0ef..d171c7c0 100644 --- a/src/admin/AdminOutdatedClient.tsx +++ b/src/admin/AdminOutdatedClient.tsx @@ -11,6 +11,7 @@ import { useState } from 'react'; import { syncPhotosAction } from '@/photo/actions'; import { useRouter } from 'next/navigation'; import ResponsiveText from '@/components/primitives/ResponsiveText'; +import { LiaBroomSolid } from 'react-icons/lia'; const UPDATE_BATCH_SIZE_MAX = 4; @@ -77,16 +78,19 @@ export default function AdminOutdatedClient({ } >
- + } + >
{photos.length} outdated {' '} {photos.length === 1 ? 'photo' : 'photos'} found
- They may have missing EXIF fields, inaccurate blur data, + Sync photos to import newer EXIF fields, improve blur data, {' '} - undesired privacy settings, or text that can be AI-generated + and leverage AI-generated text where possible
diff --git a/src/components/Container.tsx b/src/components/Container.tsx index 5d0c43fd..b2db8062 100644 --- a/src/components/Container.tsx +++ b/src/components/Container.tsx @@ -26,22 +26,22 @@ export default function Container({ case 'gray': return [ 'text-medium', 'bg-gray-50 dark:bg-gray-900/40', - 'border-gray-200 dark:border-gray-800', + 'border-medium', ]; case 'blue': return [ 'text-blue-900 dark:text-blue-300', - 'bg-blue-50/50 dark:bg-blue-950/30', - 'border-blue-200 dark:border-blue-500/40', + 'bg-blue-100/35 dark:bg-blue-950/60', + 'border-transparent', ]; case 'red': return [ - 'text-red-600 dark:text-red-500/90', - 'bg-red-50/50 dark:bg-red-950/50', - 'border-red-100 dark:border-red-950', + 'text-red-700 dark:text-red-400', + 'bg-red-100/50 dark:bg-red-950/55', + 'border-transparent', ]; case 'yellow': return [ - 'text-amber-700 dark:text-amber-500/90', - 'bg-amber-50/50 dark:bg-amber-950/30', - 'border-amber-600/30 dark:border-amber-800/30', + 'text-amber-700 dark:text-amber-500', + 'bg-amber-100/55 dark:bg-amber-950/55', + 'border-transparent', ]; } }; diff --git a/src/components/more/MoreMenuItem.tsx b/src/components/more/MoreMenuItem.tsx index 122549f9..eea7f47d 100644 --- a/src/components/more/MoreMenuItem.tsx +++ b/src/components/more/MoreMenuItem.tsx @@ -48,10 +48,10 @@ export default function MoreMenuItem({ disabled={isLoading} className={clsx( 'flex items-center h-8', - 'px-2 py-1.5 rounded-[3px]', + 'pl-2 pr-4 py-1.5 rounded-[3px]', 'select-none hover:outline-hidden', - 'hover:bg-gray-50 active:bg-gray-100', - 'dark:hover:bg-gray-900/75 dark:active:bg-gray-900', + 'hover:bg-gray-100/90 active:bg-gray-200/75', + 'dark:hover:bg-gray-800/60 dark:active:bg-gray-900/80', 'whitespace-nowrap', isLoading ? 'cursor-not-allowed opacity-50'