From 950adf71d04c445cdae07ed897f5767c00f5f03c Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sun, 21 Jul 2024 22:48:18 -0500 Subject: [PATCH] Refine batch edit menu on mobile --- src/admin/AdminBatchEditPanelClient.tsx | 15 ++++++++++----- src/components/Note.tsx | 6 ++++-- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/admin/AdminBatchEditPanelClient.tsx b/src/admin/AdminBatchEditPanelClient.tsx index cc21cd7e..812d5639 100644 --- a/src/admin/AdminBatchEditPanelClient.tsx +++ b/src/admin/AdminBatchEditPanelClient.tsx @@ -15,7 +15,7 @@ import { tagMultiplePhotosAction } from '@/photo/actions'; import { toastSuccess } from '@/toast'; import DeletePhotosButton from './DeletePhotosButton'; import { photoQuantityText } from '@/photo'; -import { FaArrowDown, FaRegStar } from 'react-icons/fa6'; +import { FaArrowDown, FaCheck, FaRegStar } from 'react-icons/fa6'; import ResponsiveText from '@/components/primitives/ResponsiveText'; export default function AdminBatchEditPanelClient({ @@ -62,6 +62,10 @@ export default function AdminBatchEditPanelClient({ ? <> } onClick={() => { setTags(undefined); setTagErrorMessage(''); @@ -72,6 +76,7 @@ export default function AdminBatchEditPanelClient({ } // eslint-disable-next-line max-len confirmText={`Are you sure you want to apply tags to ${photosText}? This action cannot be undone.`} onClick={() => { @@ -94,9 +99,7 @@ export default function AdminBatchEditPanelClient({ } primary > - - Apply Tags - + Apply Tags : <> @@ -156,9 +159,11 @@ export default function AdminBatchEditPanelClient({ 'backdrop-blur-lg !border-transparent', '!text-gray-900 dark:!text-gray-100', '!bg-gray-100/90 dark:!bg-gray-900/70', + // Override default content spacing + '[&>*>*:first-child]:gap-1.5 [&>*>*:first-child]:sm:gap-2.5', )} padding={isInTagMode ? 'tight-cta-right-left' : 'tight-cta-right'} - cta={
+ cta={
{renderActions()}
} spaceChildren={false} diff --git a/src/components/Note.tsx b/src/components/Note.tsx index 500313f7..f746634c 100644 --- a/src/components/Note.tsx +++ b/src/components/Note.tsx @@ -26,12 +26,14 @@ export default function Note(props: { type={animate ? 'bottom' : 'none'} items={[ -
+
{!hideIcon &&