mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add zoom slider to other grid views (#4674)
* bring zoom slider to other list views * updated 0 index to scale more proportionally
This commit is contained in:
@@ -50,7 +50,7 @@ export const ImageCard: React.FC<IImageCardProps> = (
|
||||
let preferredCardWidth: number;
|
||||
switch (zoomValue) {
|
||||
case 0:
|
||||
preferredCardWidth = 240;
|
||||
preferredCardWidth = 280;
|
||||
break;
|
||||
case 1:
|
||||
preferredCardWidth = 340;
|
||||
@@ -66,7 +66,7 @@ export const ImageCard: React.FC<IImageCardProps> = (
|
||||
preferredCardWidth!
|
||||
);
|
||||
setCardWidth(fittedCardWidth);
|
||||
}, [props, props.containerWidth, props.zoomIndex]);
|
||||
}, [props.containerWidth, props.zoomIndex]);
|
||||
|
||||
const file = useMemo(
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user