mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +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(
|
||||
(props: RenderImageProps) => {
|
||||
return (
|
||||
<ImageWallItem
|
||||
{...props}
|
||||
maxHeight={
|
||||
targetRowHeight(containerRef.current?.offsetWidth ?? 0) *
|
||||
maxHeightFactor
|
||||
}
|
||||
/>
|
||||
);
|
||||
// #6165 - only use targetRowHeight in row direction
|
||||
const maxHeight =
|
||||
props.direction === "column"
|
||||
? props.photo.height
|
||||
: targetRowHeight(containerRef.current?.offsetWidth ?? 0) *
|
||||
maxHeightFactor;
|
||||
return <ImageWallItem {...props} maxHeight={maxHeight} />;
|
||||
},
|
||||
[targetRowHeight]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user