From 44f0b7be9f9cf53649c5c639b05765cc3f9f6dfe Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Sat, 11 Mar 2023 00:12:39 -0800 Subject: [PATCH] improve debug display --- src/components/MasonryGallery.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/MasonryGallery.tsx b/src/components/MasonryGallery.tsx index 7ebfd0e..fbbffcc 100644 --- a/src/components/MasonryGallery.tsx +++ b/src/components/MasonryGallery.tsx @@ -119,7 +119,7 @@ const MasonryGallery = ({ } const rowAspectRatioSum = currentRow.aspect; const ar = getAspectRatio(image); - let width; + let width: string; let height = `calc(${galleryWidth} / ${rowAspectRatioSum} ${ showPalette ? "+ 10px" : "- 10px" })`; @@ -138,7 +138,7 @@ const MasonryGallery = ({ const data = dataFn ? dataFn(image) : null; return ( {data.map((dataString, i) => ( - + {dataString} ))}