Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add accentcolor to background of dataroom documents
Marc Seitz3bdd9e888b03
diff --git a/components/view/dataroom/dataroom-view.tsx b/components/view/dataroom/dataroom-view.tsxindex a812886d..69bcf8f1 100644--- a/components/view/dataroom/dataroom-view.tsx+++ b/components/view/dataroom/dataroom-view.tsx@@ -339,7 +339,13 @@ export default function DataroomView({if (submitted && documentData) {return viewData.notionData?.recordMap ? (- <div className="bg-gray-950">+ <div+ className="bg-gray-950"+ style={{+ backgroundColor:+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",+ }}+ ><NotionPagerecordMap={viewData.notionData.recordMap}viewId={viewData.viewId}@@ -370,7 +376,13 @@ export default function DataroomView({setDocumentData={setDocumentData}/>) : viewData.fileType === "sheet" && viewData.sheetData ? (- <div className="bg-gray-950">+ <div+ className="bg-gray-950"+ style={{+ backgroundColor:+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",+ }}+ ><ExcelViewerlinkId={link.id}viewId={viewData.viewId}@@ -387,7 +399,13 @@ export default function DataroomView({/></div>) : viewData.fileType === "sheet" && viewData.useAdvancedExcelViewer ? (- <div className="bg-gray-950">+ <div+ className="bg-gray-950"+ style={{+ backgroundColor:+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",+ }}+ ><AdvancedExcelViewerlinkId={link.id}viewId={viewData.viewId}@@ -403,7 +421,13 @@ export default function DataroomView({/></div>) : viewData.fileType === "image" ? (- <div className="bg-gray-950">+ <div+ className="bg-gray-950"+ style={{+ backgroundColor:+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",+ }}+ ><ImageViewerfile={viewData.file!}linkId={link.id}@@ -430,7 +454,13 @@ export default function DataroomView({/></div>) : viewData.fileType === "video" ? (- <div className="bg-gray-950">+ <div+ className="bg-gray-950"+ style={{+ backgroundColor:+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",+ }}+ ><VideoViewerfile={viewData.file!}linkId={link.id}@@ -447,7 +477,13 @@ export default function DataroomView({/></div>) : viewData.pages ? (- <div className="bg-gray-950">+ <div+ className="bg-gray-950"+ style={{+ backgroundColor:+ brand && brand.accentColor ? brand.accentColor : "rgb(3, 7, 18)",+ }}+ ><PagesViewerNewpages={viewData.pages}viewId={viewData.viewId}