Skip to content

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

fix: exclude navbar from draggable content for reactions

Marc Seitz64c0b901f57e
diff --git a/components/view/PagesViewer.tsx b/components/view/PagesViewer.tsx
index 25e79f07..e5434718 100644
--- a/components/view/PagesViewer.tsx
+++ b/components/view/PagesViewer.tsx
@@ -163,7 +163,7 @@ export default function PagesViewer({
<button
onClick={goToPreviousPage}
disabled={pageNumber == 1}
- className="absolute left-0 h-[calc(100vh - 64px)] px-2 py-24 z-20 "
+ className="absolute left-0 h-[calc(100vh - 64px)] px-2 py-24 z-20"
>
<span className="sr-only">Previous</span>
<div className="bg-gray-950/50 hover:bg-gray-950/75 rounded-full relative flex items-center justify-center p-1">
diff --git a/components/view/toolbar.tsx b/components/view/toolbar.tsx
index 63d611ec..d496f383 100644
--- a/components/view/toolbar.tsx
+++ b/components/view/toolbar.tsx
@@ -79,7 +79,10 @@ export default function Toolbar({
return (
<>
- <div className="fixed top-0 left-0 w-dvw h-dvh justify-center items-end flex z-10 ">
+ <div
+ className="fixed top-16 left-0 w-dvw justify-center items-end flex z-10"
+ style={{ height: "calc(100vh - 64px)" }}
+ >
<Draggable bounds="parent" handle=".moveable-icon">
<div className="bg-gray-950/40 rounded-full w-max mt-4 mb-4">
<div className="grid items-center justify-start">