mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix column layout image wall issues (#6168)
This commit is contained in:
@@ -116,15 +116,13 @@ const ImageWall: React.FC<IImageWallProps> = ({
|
|||||||
|
|
||||||
const renderImage = useCallback(
|
const renderImage = useCallback(
|
||||||
(props: RenderImageProps) => {
|
(props: RenderImageProps) => {
|
||||||
return (
|
// #6165 - only use targetRowHeight in row direction
|
||||||
<ImageWallItem
|
const maxHeight =
|
||||||
{...props}
|
props.direction === "column"
|
||||||
maxHeight={
|
? props.photo.height
|
||||||
targetRowHeight(containerRef.current?.offsetWidth ?? 0) *
|
: targetRowHeight(containerRef.current?.offsetWidth ?? 0) *
|
||||||
maxHeightFactor
|
maxHeightFactor;
|
||||||
}
|
return <ImageWallItem {...props} maxHeight={maxHeight} />;
|
||||||
/>
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
[targetRowHeight]
|
[targetRowHeight]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user