mirror of
https://github.com/stashapp/stash.git
synced 2026-04-20 05:52:40 +02:00
Fix column layout image wall issues (#6168)
This commit is contained in:
parent
947a17355c
commit
98df51755e
1 changed files with 7 additions and 9 deletions
|
|
@ -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]
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue