From f365918b80515f43617cc2c1878d15a52cfb6aaf Mon Sep 17 00:00:00 2001 From: James Purser Date: Sun, 10 Dec 2023 18:50:12 +1100 Subject: [PATCH] Further improvements to Galleries --- components/css/styles.css | 6 +++++- components/gallerycarousel.js | 3 +-- pages/gallery/[gallery].js | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/css/styles.css b/components/css/styles.css index ccc4762..a6cd7cf 100755 --- a/components/css/styles.css +++ b/components/css/styles.css @@ -309,9 +309,13 @@ } .carousel { - height: 100% + } .carousel-item { display: block + } + + .carousel-item img { + max-height: 667px; } \ No newline at end of file diff --git a/components/gallerycarousel.js b/components/gallerycarousel.js index e47e633..963b7b0 100755 --- a/components/gallerycarousel.js +++ b/components/gallerycarousel.js @@ -31,8 +31,7 @@ const GalleryCarousel = ({galleryImages, basepath, gallery}) => { alt={item.attributes.Title} > -

{item.title}

-

{item.body}

+

{item.attributes.Title}

) diff --git a/pages/gallery/[gallery].js b/pages/gallery/[gallery].js index 0f12e02..f75161f 100644 --- a/pages/gallery/[gallery].js +++ b/pages/gallery/[gallery].js @@ -19,6 +19,8 @@ export async function getServerSideProps(context) { const galleryImages = await getGalleryImages(context.params.gallery, page, 9) + console.log(galleryImages) + const { serverRuntimeConfig } = getConfig() const pagedata = {