diff --git a/pages/gallery.js b/pages/gallery.js index be39f35..8e45aa8 100644 --- a/pages/gallery.js +++ b/pages/gallery.js @@ -7,6 +7,7 @@ export default function Gallery({ response }) { let images = []; for(const key in response) { let item = response[key]; + if(item['fields']['image'] != null) item['fields']['link'] = item['fields']['image'][0]['url']; images.push(item['fields']); } diff --git a/styles/Gallery.module.css b/styles/Gallery.module.css index 8076e08..ae6ef79 100644 --- a/styles/Gallery.module.css +++ b/styles/Gallery.module.css @@ -13,6 +13,10 @@ position: relative; } +.gallery > div > img { + margin-bottom: -5px; +} + .overlay { position: absolute; display: flex;