Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: device height

Marc Seitzf15d6c9c9319
diff --git a/components/view/PagesViewerNew.tsx b/components/view/PagesViewerNew.tsx
index 10819b02..7f468aa3 100644
--- a/components/view/PagesViewerNew.tsx
+++ b/components/view/PagesViewerNew.tsx
@@ -605,7 +605,7 @@ export default function PagesViewer({
disableZoom={isVertical && isMobile}
/>
<div
- style={{ height: "calc(100vh - 64px)" }}
+ style={{ height: "calc(100dvh - 64px)" }}
className={cn("relative flex items-center", isVertical && "h-dvh")}
>
<div
@@ -705,7 +705,7 @@ export default function PagesViewer({
(isVertical || pageNumber === numPagesWithAccountCreation) ? (
<div
className={cn("relative block h-dvh w-full")}
- style={{ height: "calc(100vh - 64px)" }}
+ style={{ height: "calc(100dvh - 64px)" }}
>
<ViewDurationSummary
linkId={linkId}