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:
CJ
2025-03-03 18:56:59 -06:00
committed by GitHub
parent 0f32311f6e
commit a3f8c36536
13 changed files with 84 additions and 19 deletions

View File

@@ -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(
() =>