Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add sheet image
Marc Seitza86c4eed5a4d
diff --git a/components/documents/document-header.tsx b/components/documents/document-header.tsxindex c960745f..5506c5e8 100644--- a/components/documents/document-header.tsx+++ b/components/documents/document-header.tsx@@ -291,7 +291,7 @@ export default function DocumentHeader({) : (<div className="h-[25px] w-[25px] lg:h-[32px] lg:w-[32px]"><Image- src={`/_icons/${getExtension(primaryVersion.file)}${isLight ? "-light" : ""}.svg`}+ src={`/_icons/${primaryVersion.type}${isLight ? "-light" : ""}.svg`}alt="File icon"width={50}height={50}diff --git a/components/view/dataroom/document-card.tsx b/components/view/dataroom/document-card.tsxindex 115163b9..1eca42da 100644--- a/components/view/dataroom/document-card.tsx+++ b/components/view/dataroom/document-card.tsx@@ -44,7 +44,7 @@ export default function DocumentCard({<NotionIcon className="h-8 w-8" />) : (<Image- src={`/_icons/pdf${isLight ? "-light" : ""}.svg`}+ src={`/_icons/${document.versions[0].type}${isLight ? "-light" : ""}.svg`}alt="File icon"width={50}height={50}diff --git a/public/_icons/sheet-light.svg b/public/_icons/sheet-light.svgnew file mode 100644index 00000000..7e5bd764--- /dev/null+++ b/public/_icons/sheet-light.svg@@ -0,0 +1,4 @@+<svg width="151" height="200" viewBox="0 0 151 200" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M147.289 38.4L111.849 2.96C109.94 1.05111 107.402 0 104.702 0H10.1067C4.53334 0 0 4.53333 0 10.1067V189.893C0 195.467 4.53334 200 10.1067 200H140.144C145.718 200 150.251 195.467 150.251 189.893V45.5467C150.249 42.8467 149.198 40.3111 147.289 38.4ZM110.842 11.38L138.869 39.4067H113.68C112.116 39.4067 110.842 38.1333 110.842 36.5689V11.38ZM140.142 193.333H10.1067C8.20889 193.333 6.66668 191.791 6.66668 189.893V10.1067C6.66668 8.20889 8.20889 6.66667 10.1067 6.66667H104.176V36.5689C104.176 41.8089 108.44 46.0733 113.68 46.0733H143.582V189.893C143.582 191.791 142.04 193.333 140.142 193.333Z" fill="black"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M30 90C30 88.3431 31.3431 87 33 87H117C118.657 87 120 88.3431 120 90V167C120 168.657 118.657 170 117 170H33C31.3431 170 30 168.657 30 167V90ZM78 94H113V106H78V94ZM72 94H37V106H72V94ZM78 113H113V125H78V113ZM72 113H37V125H72V113ZM78 132H113V144H78V132ZM72 132H37V144H72V132ZM78 151H113V163H78V151ZM72 151H37V163H72V151Z" fill="black"/>+</svg>diff --git a/public/_icons/sheet.svg b/public/_icons/sheet.svgnew file mode 100644index 00000000..54b76d3d--- /dev/null+++ b/public/_icons/sheet.svg@@ -0,0 +1,4 @@+<svg width="151" height="200" viewBox="0 0 151 200" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M147.289 38.4L111.849 2.96C109.94 1.05111 107.402 0 104.702 0H10.1067C4.53334 0 0 4.53333 0 10.1067V189.893C0 195.467 4.53334 200 10.1067 200H140.144C145.718 200 150.251 195.467 150.251 189.893V45.5467C150.249 42.8467 149.198 40.3111 147.289 38.4ZM110.842 11.38L138.869 39.4067H113.68C112.116 39.4067 110.842 38.1333 110.842 36.5689V11.38ZM140.142 193.333H10.1067C8.20889 193.333 6.66668 191.791 6.66668 189.893V10.1067C6.66668 8.20889 8.20889 6.66667 10.1067 6.66667H104.176V36.5689C104.176 41.8089 108.44 46.0733 113.68 46.0733H143.582V189.893C143.582 191.791 142.04 193.333 140.142 193.333Z" fill="white"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M30 90C30 88.3431 31.3431 87 33 87H117C118.657 87 120 88.3431 120 90V167C120 168.657 118.657 170 117 170H33C31.3431 170 30 168.657 30 167V90ZM78 94H113V106H78V94ZM72 94H37V106H72V94ZM78 113H113V125H78V113ZM72 113H37V125H72V113ZM78 132H113V144H78V132ZM72 132H37V144H72V132ZM78 151H113V163H78V151ZM72 151H37V163H72V151Z" fill="white"/>+</svg>