From 852e817ab795f87ce42f1c519d39fecee5a5812c Mon Sep 17 00:00:00 2001 From: Chuma McPhoy Date: Mon, 9 Sep 2024 14:46:22 +0200 Subject: [PATCH] fix(SW-337): better desktop gallery layout --- components/Lightbox/Gallery.tsx | 18 ++++++++----- components/Lightbox/Lightbox.module.css | 35 +++++++++++-------------- package-lock.json | 23 ++++++++++++++++ package.json | 1 + 4 files changed, 50 insertions(+), 27 deletions(-) diff --git a/components/Lightbox/Gallery.tsx b/components/Lightbox/Gallery.tsx index 0c151e420..b1be2ab70 100644 --- a/components/Lightbox/Gallery.tsx +++ b/components/Lightbox/Gallery.tsx @@ -1,5 +1,6 @@ "use client" import { DialogTitle } from "@radix-ui/react-dialog" +import { VisuallyHidden } from "@radix-ui/react-visually-hidden" import { AnimatePresence, motion } from "framer-motion" import { ChevronRightIcon } from "@/components/Icons" @@ -55,14 +56,17 @@ export default function Gallery({ {/* Desktop Gallery */}
-
+ -
- {mainImage.title && ( - {mainImage.title} - )} -
+ Image Gallery
+
+
+ {mainImage.title && ( +
+ {mainImage.title} +
+ )}
@@ -99,7 +103,7 @@ export default function Gallery({
-
+
{getThumbImages().map((image, index) => (