Skip to content

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

fix: resolve margin issues in DocumentList and Tree components (#1155)

JeevaRamanathan47a70a82698b
diff --git a/components/documents/documents-list.tsx b/components/documents/documents-list.tsx
index 6062ed81..17359eab 100644
--- a/components/documents/documents-list.tsx
+++ b/components/documents/documents-list.tsx
@@ -347,7 +347,7 @@ export function DocumentsList({
},
}}
>
- <div className="space-y-4">
+ <div className="space-y-4 pb-3">
{/* Folders list */}
<ul role="list" className="space-y-4">
{folders
diff --git a/components/ui/nextra-filetree.tsx b/components/ui/nextra-filetree.tsx
index d985342e..b14f5d42 100644
--- a/components/ui/nextra-filetree.tsx
+++ b/components/ui/nextra-filetree.tsx
@@ -108,7 +108,7 @@ const Folder = memo<FolderProps>(
const isFolderOpen = open === undefined ? isOpen : open;
return (
- <li className="flex w-full list-none flex-col">
+ <li className="flex w-full list-none flex-col py-0.5">
<div
title={name}
className={cn(
@@ -145,7 +145,7 @@ const Folder = memo<FolderProps>(
</span>
</div>
{isFolderOpen && (
- <ul>
+ <ul className="py-0.5">
<ctx.Provider value={indent + 1}>{children}</ctx.Provider>
</ul>
)}
diff --git a/pages/documents/index.tsx b/pages/documents/index.tsx
index 7c23bcca..97b9f9b9 100644
--- a/pages/documents/index.tsx
+++ b/pages/documents/index.tsx
@@ -54,7 +54,7 @@ export default function Documents() {
</div>
</section>
- <div className="flex justify-end">
+ <div className="flex justify-end mb-2">
<div className="relative w-full sm:max-w-xs">
<SearchBoxPersisted loading={isValidating} inputClassName="h-10" />
</div>