Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: align toolbar center and less intrusive
Marc Seitz2378f46574f8
diff --git a/components/view/PagesViewer.tsx b/components/view/PagesViewer.tsxindex 0e8102a1..25e79f07 100644--- a/components/view/PagesViewer.tsx+++ b/components/view/PagesViewer.tsx@@ -160,34 +160,32 @@ export default function PagesViewer({style={{ height: "calc(100vh - 64px)" }}className="flex items-center relative">- <div className="flex items-center justify-between w-full absolute z-10 px-2">- <button- onClick={goToPreviousPage}- disabled={pageNumber == 1}- className="relative h-[calc(100vh - 64px)] px-2 py-24 focus: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">- <ChevronLeftIcon- className="h-10 w-10 text-white"- aria-hidden="true"- />- </div>- </button>- <button- onClick={goToNextPage}- disabled={pageNumber >= numPages}- className="relative h-[calc(100vh - 64px)] px-2 py-24 focus:z-20"- >- <span className="sr-only">Next</span>- <div className="bg-gray-950/50 hover:bg-gray-950/75 rounded-full relative flex items-center justify-center p-1">- <ChevronRightIcon- className="h-10 w-10 text-white"- aria-hidden="true"- />- </div>- </button>- </div>+ <button+ onClick={goToPreviousPage}+ disabled={pageNumber == 1}+ 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">+ <ChevronLeftIcon+ className="h-10 w-10 text-white"+ aria-hidden="true"+ />+ </div>+ </button>+ <button+ onClick={goToNextPage}+ disabled={pageNumber >= numPages}+ className="absolute right-0 h-[calc(100vh - 64px)] px-2 py-24 z-20"+ >+ <span className="sr-only">Next</span>+ <div className="bg-gray-950/50 hover:bg-gray-950/75 rounded-full relative flex items-center justify-center p-1">+ <ChevronRightIcon+ className="h-10 w-10 text-white"+ aria-hidden="true"+ />+ </div>+ </button><div className="flex justify-center mx-auto relative h-full w-full">{pages && loadedImages[pageNumber - 1] ? (diff --git a/components/view/toolbar.tsx b/components/view/toolbar.tsxindex 21bd6b12..63d611ec 100644--- a/components/view/toolbar.tsx+++ b/components/view/toolbar.tsx@@ -58,7 +58,7 @@ export default function Toolbar({const Emoji = ({ label, emoji }: { label: string; emoji: string }) => (<div className="relative w-fit"><button- className="font-emoji text-2xl leading-6 bg-transparent p-1 relative transition-bg-color duration-600 inline-flex justify-center items-center align-middle rounded-full ease-in-out hover:bg-gray-200 active:bg-gray-400 active:duration-0"+ className="font-emoji text-xl leading-6 bg-transparent py-1 px-1.5 relative transition-bg-color duration-600 inline-flex justify-center items-center align-middle rounded-full ease-in-out hover:bg-gray-200 active:bg-gray-400 active:duration-0"role="img"aria-label={label ? label : ""}aria-hidden={label ? "false" : "true"}@@ -79,15 +79,11 @@ export default function Toolbar({return (<>- <Draggable- bounds="parent"- handle=".moveable-icon"- defaultClassName="mt-12"- >- <div className="fixed bottom-10 left-1/2 flex z-10">- <div className="bg-gray-950/50 border border-gray-900 rounded-full mx-auto mt-4 mb-4">+ <div className="fixed top-0 left-0 w-dvw h-dvh justify-center items-end flex z-10 ">+ <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">- <div className="p-2">+ <div className="px-2 py-1"><div className="grid items-center justify-start grid-flow-col">{REACTIONS.map((reaction) => (<Emoji@@ -96,13 +92,13 @@ export default function Toolbar({label={reaction.label}/>))}- <GripVertical className="h-6 w-6 text-gray-100 active:text-gray-300 moveable-icon" />+ <GripVertical className="h-5 w-5 text-gray-100 active:text-gray-300 moveable-icon" /></div></div></div></div>- </div>- </Draggable>+ </Draggable>+ </div></>);}