diff --git a/src/components/SideBar.tsx b/src/components/SideBar.tsx index a3b535b..486aadd 100644 --- a/src/components/SideBar.tsx +++ b/src/components/SideBar.tsx @@ -100,7 +100,9 @@ function SideBar() { ]; return ( -
+
diff --git a/src/components/newPdfViewer.tsx b/src/components/newPdfViewer.tsx index 4345124..208bbf6 100644 --- a/src/components/newPdfViewer.tsx +++ b/src/components/newPdfViewer.tsx @@ -106,7 +106,7 @@ const Controls = memo(function Controls({documentId, toggleFullscreen, isFullscr onFocus={() => setPageNo("")} className="h-9 w-14 rounded border bg-[#e7e9ff] p-1 text-center text-sm [appearance:textfield] dark:bg-[#1f1f2a] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none" /> - of {totalPages ?? 1} + {totalPages > 0 ? `of ${totalPages}` : "loading…"}
)