Skip to content

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

fix(viewer): hide page indicator when document has only 1 page

Marc Seitz5a9121545bd1
diff --git a/components/view/nav.tsx b/components/view/nav.tsx
index e2771b55..bfabbec3 100644
--- a/components/view/nav.tsx
+++ b/components/view/nav.tsx
@@ -393,7 +393,7 @@ export default function Nav({
</div>
)}
- {pageNumber && numPages ? (
+ {pageNumber && numPages && numPages > 1 ? (
<div className="flex h-8 items-center space-x-1 rounded-md bg-gray-900 px-3 py-1.5 text-xs font-medium text-white sm:h-10 sm:px-4 sm:py-2 sm:text-sm">
<span style={{ fontVariantNumeric: "tabular-nums" }}>
{pageNumber}