mirror of https://github.com/stashapp/stash.git
improve image wasll column scaling (#3516)
This commit is contained in:
parent
57951fe6a0
commit
e90b00d3bd
|
@ -76,9 +76,9 @@ const ImageWall: React.FC<IImageWallProps> = ({ images, handleImageOpen }) => {
|
||||||
);
|
);
|
||||||
|
|
||||||
function columns(containerWidth: number) {
|
function columns(containerWidth: number) {
|
||||||
let preferredSize = 250;
|
let preferredSize = 300;
|
||||||
let columnCount = containerWidth / preferredSize;
|
let columnCount = containerWidth / preferredSize;
|
||||||
return Math.floor(columnCount);
|
return Math.round(columnCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue