Open image zoon viewer on click for any image size

This commit is contained in:
Claire Chabas
2025-05-22 13:38:50 +02:00
parent 19c20c0be3
commit 969cfa80fe
@@ -55,9 +55,6 @@ export function ZoomImage(
if (!mediaQueryList.matches) {
// Don't allow zooming on mobile
setZoomable(false);
} else if (resizeObserver && imageWidth && viewWidth && imageWidth <= viewWidth) {
// Image can't be zoomed if it's already rendered as it's largest size
setZoomable(false);
} else {
setZoomable(true);
}