Skip to content

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

feat: add small border for vertical document gap

Marc Seitz7b3ce8d0f65d
diff --git a/components/view/viewer/pages-vertical-viewer.tsx b/components/view/viewer/pages-vertical-viewer.tsx
index 26429d54..73a6c10e 100644
--- a/components/view/viewer/pages-vertical-viewer.tsx
+++ b/components/view/viewer/pages-vertical-viewer.tsx
@@ -789,7 +789,44 @@ export default function PagesVerticalViewer({
: undefined,
}}
>
- <div className="viewer-container relative">
+ <div
+ className="viewer-container relative border-b border-t border-gray-100"
+ style={{
+ position: "relative",
+ }}
+ >
+ <div
+ className="pointer-events-none absolute bottom-0 left-0 w-px"
+ style={{
+ height: "10%",
+ background:
+ "linear-gradient(to top, #f3f4f6, transparent)",
+ }}
+ />
+ <div
+ className="pointer-events-none absolute bottom-0 right-0 w-px"
+ style={{
+ height: "10%",
+ background:
+ "linear-gradient(to top, #f3f4f6, transparent)",
+ }}
+ />
+ <div
+ className="pointer-events-none absolute left-0 top-0 w-px"
+ style={{
+ height: "10%",
+ background:
+ "linear-gradient(to bottom, #f3f4f6, transparent)",
+ }}
+ />
+ <div
+ className="pointer-events-none absolute right-0 top-0 w-px"
+ style={{
+ height: "10%",
+ background:
+ "linear-gradient(to bottom, #f3f4f6, transparent)",
+ }}
+ />
<img
className="viewer-image-mobile h-auto w-full object-contain"
onContextMenu={(e) => {