Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: safari rendering
Marc Seitz9007a4f55cda
diff --git a/components/view/dataroom/document-card.tsx b/components/view/dataroom/document-card.tsxindex e981ba06..b209366c 100644--- a/components/view/dataroom/document-card.tsx+++ b/components/view/dataroom/document-card.tsx@@ -189,7 +189,14 @@ export default function DocumentCard({isProcessing && "cursor-not-allowed opacity-60",)}>- <div className="z-0 flex min-w-0 shrink items-center space-x-2 sm:space-x-4">+ {/* Click target - outside of text hierarchy to fix Safari truncation issue */}+ <button+ onClick={handleDocumentClick}+ className="absolute inset-0 z-0 cursor-pointer"+ disabled={isProcessing}+ aria-hidden="true"+ />+ <div className="flex min-w-0 shrink items-center space-x-2 sm:space-x-4"><div className="mx-0.5 flex w-8 items-center justify-center text-center sm:mx-1">{fileIcon({fileType: document.versions[0].type ?? "",@@ -198,25 +205,18 @@ export default function DocumentCard({})}</div>- <div className="flex-col">+ <div className="min-w-0 flex-1 flex-col"><div className="flex items-center"><h2- className="min-w-0 max-w-[300px] truncate text-sm font-semibold leading-6 text-foreground sm:max-w-lg"+ className="truncate text-sm font-semibold leading-6 text-foreground"style={HIERARCHICAL_DISPLAY_STYLE}>- <button- onClick={handleDocumentClick}- className="cursor-pointer text-left"- disabled={isProcessing}- >- {displayName}- {isProcessing && (- <span className="ml-2 text-xs text-muted-foreground">- (Processing...)- </span>- )}- <span className="absolute inset-0" />- </button>+ {displayName}+ {isProcessing && (+ <span className="ml-2 text-xs text-muted-foreground">+ (Processing...)+ </span>+ )}</h2></div><div className="mt-1 flex items-center space-x-1 text-xs leading-5 text-muted-foreground">diff --git a/components/view/dataroom/folder-card.tsx b/components/view/dataroom/folder-card.tsxindex f7ab2520..60cb372f 100644--- a/components/view/dataroom/folder-card.tsx+++ b/components/view/dataroom/folder-card.tsx@@ -101,24 +101,24 @@ export default function FolderCard({return (<div className="group/row relative flex items-center justify-between rounded-lg border-0 p-3 ring-1 ring-gray-400 transition-all hover:bg-secondary hover:ring-gray-500 dark:bg-secondary dark:ring-gray-500 hover:dark:ring-gray-400 sm:p-4">+ {/* Click target - outside of text hierarchy to fix Safari truncation issue */}+ <button+ onClick={() => setFolderId(folder.id)}+ className="absolute inset-0 z-0 cursor-pointer"+ aria-hidden="true"+ /><div className="flex min-w-0 shrink items-center space-x-2 sm:space-x-4"><div className="mx-0.5 flex w-8 items-center justify-center text-center sm:mx-1"><FolderIcon className="h-8 w-8" strokeWidth={1} /></div>- <div className="flex-col">+ <div className="min-w-0 flex-1 flex-col"><div className="flex items-center"><h2- className="min-w-0 max-w-[300px] truncate text-sm font-semibold leading-6 text-foreground sm:max-w-lg"+ className="truncate text-sm font-semibold leading-6 text-foreground"style={HIERARCHICAL_DISPLAY_STYLE}>- <span- onClick={() => setFolderId(folder.id)}- className="cursor-pointer"- >- {displayName}- <span className="absolute inset-0" />- </span>+ {displayName}</h2></div><div className="mt-1 flex items-center space-x-1 text-xs leading-5 text-muted-foreground">