diff --git a/app/home/[id]/pdf/[pdfId]/PdfViewerPageClient.tsx b/app/home/[id]/pdf/[pdfId]/PdfViewerPageClient.tsx index 74ddbf5d..418b171a 100644 --- a/app/home/[id]/pdf/[pdfId]/PdfViewerPageClient.tsx +++ b/app/home/[id]/pdf/[pdfId]/PdfViewerPageClient.tsx @@ -50,6 +50,7 @@ import { TooltipTrigger, } from "@/components/ui/tooltip"; import { useHoverTooltip } from "@/hooks/useHoverTooltip"; +import PdfSettings from "@/components/home-components/PdfSettings"; GlobalWorkerOptions.workerSrc = new URL( "pdfjs-dist/legacy/build/pdf.worker.mjs", @@ -447,7 +448,7 @@ function PageNavigator() { }} inputMode="numeric" aria-label="current-page-input" - className="h-7 w-7 p-0 mx-1 mb-0.5 bg-transparent border-0 text-center text-sm font-medium text-foreground focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0" + className="h-7 w-7 p-0 mx-1 mb-0 bg-transparent border-0 text-center text-sm font-medium text-foreground focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0" /> of {pages || 1} @@ -548,6 +553,13 @@ function PdfViewerContent({ + @@ -567,11 +579,8 @@ function PdfViewerContent({ setPanelMode(null)} /> ) : null} +
-
@@ -588,9 +597,13 @@ function PdfViewerContent({ function PdfViewerShell({ fileUrl, title, + pdfId, + pdftitle, }: { fileUrl: string; title: string; + pdfId: Id<"pdfs">; + pdftitle: string; }) { return ( - + ); } @@ -701,6 +719,8 @@ export default function PdfViewerPageClient({ pdfId }: { pdfId: Id<"pdfs"> }) { ) : (
diff --git a/components/home-components/HomeClientLayout.tsx b/components/home-components/HomeClientLayout.tsx index 671ba444..162cf6c2 100644 --- a/components/home-components/HomeClientLayout.tsx +++ b/components/home-components/HomeClientLayout.tsx @@ -98,7 +98,7 @@ const HomeContent = memo(({ children }: { children: ReactNode }) => {
{(!open || isMobile) && } - + {!isPdfRoute ? : null}
{!isPdfRoute && noteid && noteTitle && ( @@ -114,17 +114,6 @@ const HomeContent = memo(({ children }: { children: ReactNode }) => { /> )} - {isPdfRoute && currentPdf && ( - - - - )}
diff --git a/components/home-components/PdfSettings.tsx b/components/home-components/PdfSettings.tsx index 2fd87442..96d195be 100644 --- a/components/home-components/PdfSettings.tsx +++ b/components/home-components/PdfSettings.tsx @@ -171,32 +171,33 @@ export default function PdfSettings({ }} > - - - - - - - Rename, Pin, Move, Download, Delete - + + + + + + + Rename, Pin, Move, Download, Delete +