Skip to content

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

fix(278) - document card pdf icon color

Sachin Duhan89c19eff96ec
diff --git a/components/documents/document-card.tsx b/components/documents/document-card.tsx
index 937e9e61..18bb7388 100644
--- a/components/documents/document-card.tsx
+++ b/components/documents/document-card.tsx
@@ -157,7 +157,7 @@ export default function DocumentsCard({
alt="File icon"
width={50}
height={50}
- className=""
+ className={`${prismaDocument.type === 'pdf' && "bg-black dark:bg-white"}`}
/>
)}
</div>