From 550d17f4904b60df3a8ffc41d94b58668f90211f Mon Sep 17 00:00:00 2001 From: carlobortolan Date: Wed, 22 Jan 2025 04:05:28 +0100 Subject: [PATCH] Update viewerjs styling --- src/components/image/ImageWithFallback.tsx | 98 +++++++++++----------- 1 file changed, 48 insertions(+), 50 deletions(-) diff --git a/src/components/image/ImageWithFallback.tsx b/src/components/image/ImageWithFallback.tsx index 07279f87..c2dd4801 100644 --- a/src/components/image/ImageWithFallback.tsx +++ b/src/components/image/ImageWithFallback.tsx @@ -69,18 +69,11 @@ export default function ImageWithFallback(props: ImageProps & { toolbar: { zoomIn: 1, zoomOut: 1, - oneToOne: 1, reset: 1, - prev: 0, play: { show: 0, size: 'large', }, - next: 0, - rotateLeft: 1, - rotateRight: 1, - flipHorizontal: 1, - flipVertical: 1, tooltip: 1, }, }); @@ -105,50 +98,55 @@ export default function ImageWithFallback(props: ImageProps & { }; return ( -
- {(showFallback || shouldDebugImageFallbacks) && -
- {(BLUR_ENABLED && blurDataURL) - ? - :
} -
} - + +
- {enableImageActions && } -
+ ref={containerRef} + > + {(showFallback || shouldDebugImageFallbacks) && +
+ {(BLUR_ENABLED && blurDataURL) + ? + :
} +
} + + {enableImageActions && } +
+ ); }