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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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 (