fix: improve document attachment rendering logic

This commit is contained in:
Catalin Documenso
2025-05-05 12:50:05 +03:00
parent dbacfaa841
commit d10ec437cf

View File

@ -377,7 +377,7 @@ export const DocumentSigningForm = ({
/> />
</div> </div>
{document.attachments && ( {document.attachments?.length > 0 && (
<Accordion type="multiple" className="mt-2"> <Accordion type="multiple" className="mt-2">
<AccordionItem value="attachments" className="border-none"> <AccordionItem value="attachments" className="border-none">
<AccordionTrigger className="text-foreground mb-2 rounded border px-3 py-2 text-left hover:bg-neutral-200/30 hover:no-underline"> <AccordionTrigger className="text-foreground mb-2 rounded border px-3 py-2 text-left hover:bg-neutral-200/30 hover:no-underline">