diff --git a/components/view/viewer/pages-vertical-viewer.tsx b/components/view/viewer/pages-vertical-viewer.tsx index 8800b3e4..32659731 100644 --- a/components/view/viewer/pages-vertical-viewer.tsx +++ b/components/view/viewer/pages-vertical-viewer.tsx @@ -781,46 +781,48 @@ export default function PagesVerticalViewer({ : undefined, }} > - { - imageRefs.current[index] = ref; - if (ref) { - ref.onload = () => - setImageDimensions((prev) => ({ - ...prev, - [index]: { - width: ref.clientWidth, - height: ref.clientHeight, - }, - })); +
+ { + imageRefs.current[index] = ref; + if (ref) { + ref.onload = () => + setImageDimensions((prev) => ({ + ...prev, + [index]: { + width: ref.clientWidth, + height: ref.clientHeight, + }, + })); + } + }} + useMap={`#page-map-${index + 1}`} + src={ + loadedImages[index] + ? page.file + : "https://www.papermark.io/_static/blank.gif" } - }} - useMap={`#page-map-${index + 1}`} - src={ - loadedImages[index] - ? page.file - : "https://www.papermark.io/_static/blank.gif" - } - alt={`Page ${index + 1}`} - /> - - {watermarkConfig && imageDimensions[index] ? ( -
- -
- ) : null} + alt={`Page ${index + 1}`} + /> + + {watermarkConfig && imageDimensions[index] ? ( +
+ +
+ ) : null} +
{page.pageLinks ? (