added native airtable images instead of urls and improved gallery layout

main
Midnight 3 years ago
parent 8b3311c5d8
commit e245b283ad

@ -7,6 +7,7 @@ export default function Gallery({ response }) {
let images = []; let images = [];
for(const key in response) { for(const key in response) {
let item = response[key]; let item = response[key];
if(item['fields']['image'] != null) item['fields']['link'] = item['fields']['image'][0]['url'];
images.push(item['fields']); images.push(item['fields']);
} }

@ -13,6 +13,10 @@
position: relative; position: relative;
} }
.gallery > div > img {
margin-bottom: -5px;
}
.overlay { .overlay {
position: absolute; position: absolute;
display: flex; display: flex;

Loading…
Cancel
Save