improve image wasll column scaling (#3516)

This commit is contained in:
CJ
2023-03-09 19:03:08 -06:00
committed by GitHub
parent 57951fe6a0
commit e90b00d3bd

View File

@@ -76,9 +76,9 @@ const ImageWall: React.FC<IImageWallProps> = ({ images, handleImageOpen }) => {
);
function columns(containerWidth: number) {
let preferredSize = 250;
let preferredSize = 300;
let columnCount = containerWidth / preferredSize;
return Math.floor(columnCount);
return Math.round(columnCount);
}
return (