diff --git a/gatsby/src/components/MasonryGallery.js b/gatsby/src/components/MasonryGallery.js
index 899085b..b67edb8 100644
--- a/gatsby/src/components/MasonryGallery.js
+++ b/gatsby/src/components/MasonryGallery.js
@@ -27,7 +27,7 @@ const MasonryGallery = ({ images, itemsPerRow: itemsPerRowByBreakpoint }) => {
// console.log('bp', breakpoint);
const rowAspectRatioSumsForCurrentBP = rowAspectRatioSumsByBreakpoint[breakpoint];
- console.log('rowAspectRatioSumsForCurrentBP :', rowAspectRatioSumsForCurrentBP);
+ // console.log('rowAspectRatioSumsForCurrentBP :', rowAspectRatioSumsForCurrentBP);
return (
{
{images.map((image, i) => {
const rowIndex = Math.floor(i / itemsPerRowByBreakpoint[breakpoint]);
const rowAspectRatioSum = rowAspectRatioSumsForCurrentBP[rowIndex];
+ const width = ((getAspectRatio(image) / rowAspectRatioSum) * 100).toFixed(10);
// console.log('ars', rowAspectRatioSum);
if (i === 0) {
- console.log(rowIndex, rowAspectRatioSum);
- console.log(getName(image), `${(getAspectRatio(image) / rowAspectRatioSum) * 100}%`);
+ // console.log(rowIndex, rowAspectRatioSum);
+ console.log(getName(image), `${width}%`);
}
return (
- //
-
- //
+ >
+ {/* // */}
+
+ {/* // */}
+
);
})}
);
diff --git a/gatsby/src/pages/photogallery.js b/gatsby/src/pages/photogallery.js
index 36260e9..954ccda 100644
--- a/gatsby/src/pages/photogallery.js
+++ b/gatsby/src/pages/photogallery.js
@@ -36,10 +36,11 @@ const GalleryPage = ({ data }) => {
@@ -63,7 +64,7 @@ query GalleryPageQuery {
},
gatsbyImageData(
layout: CONSTRAINED,
- height: 400
+ height: 550
)
fields {
imageMeta {