diff --git a/app/admin/page.tsx b/app/admin/page.tsx index 90e711d..2cc4969 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -413,7 +413,7 @@ export default function AdminDashboard() { Short Description setIsEditing({...isEditing, shortDescription: e.target.value})} className={`${inputClasses} h-24 resize-none`} placeholder="Brief summary..." /> - + Open the gallery in fullscreen immediately when the user clicks this card. + + setIsEditing({ ...isEditing, skipPreview: e.target.checked })} + className="w-5 h-5 text-blue-600 rounded mt-0.5" + /> + + Skip preview + Don’t show the cover as a slide in the gallery. The cover stays as the card thumbnail only. Combine with “Auto fullscreen” to jump straight into the gallery items. + + diff --git a/components/PublicGrid.tsx b/components/PublicGrid.tsx index 8e30dbc..590eeff 100644 --- a/components/PublicGrid.tsx +++ b/components/PublicGrid.tsx @@ -327,7 +327,7 @@ export default function PublicGrid({ cards, maxCols = 5 }: { cards: Card[], maxC const carouselItems: MediaItem[] = activeCard ? [ - ...(activeCard.imageUrl ? [{ url: activeCard.imageUrl }] : []), + ...(activeCard.imageUrl && !activeCard.skipPreview ? [{ url: activeCard.imageUrl }] : []), ...(activeCard.extraMedia || []), ] : []; diff --git a/types/index.ts b/types/index.ts index 60632c4..0358859 100644 --- a/types/index.ts +++ b/types/index.ts @@ -17,6 +17,7 @@ export interface Card { actionUrl?: string; displayOrder: number; autoFullscreen?: boolean; // open the fullscreen viewer immediately when this card is clicked + skipPreview?: boolean; // skip the modal preview AND exclude the cover image from the swipe sequence } export interface Portal {