From 27e63f6a96147449a0be3e17b622444a4429b99a Mon Sep 17 00:00:00 2001 From: Rithish Date: Thu, 30 Jul 2026 18:49:44 +0000 Subject: [PATCH] Fix sidebar , scroll , render issues --- src/components/SideBar.tsx | 4 +++- src/components/newPdfViewer.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/SideBar.tsx b/src/components/SideBar.tsx index a3b535b8..486aadda 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 a2c47ab8..fb47466c 100644 --- a/src/components/newPdfViewer.tsx +++ b/src/components/newPdfViewer.tsx @@ -105,7 +105,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…"}
)