mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
improve image wasll column scaling (#3516)
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user