-
+
@@ -535,7 +540,7 @@ function PdfViewerContent({
{panelMode === "thumbnails" ? (
) : (
- Pg
+ Pg
)}
@@ -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
+