Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
Merge pull request #2017 from mfts/fix/truncate-safari
Marc Seitz4e17fba393ff
diff --cc components/view/dataroom/document-card.tsxindex 66eece35,b209366c..c18aa784--- a/components/view/dataroom/document-card.tsx+++ b/components/view/dataroom/document-card.tsx@@@ -200,34 -205,25 +207,27 @@@ 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">- <p className="truncate">- Updated {timeAgo(document.versions[0].updatedAt)}- </p>- </div>+ {showLastUpdated && (+ <div className="mt-1 flex items-center space-x-1 text-xs leading-5 text-muted-foreground">+ <p className="truncate">+ Updated {timeAgo(document.versions[0].updatedAt)}+ </p>+ </div>+ )}</div></div>{canDownload && !isProcessing && (diff --cc components/view/dataroom/folder-card.tsxindex 2e8f1029,60cb372f..10c96cc3--- a/components/view/dataroom/folder-card.tsx+++ b/components/view/dataroom/folder-card.tsx@@@ -108,26 -112,18 +114,20 @@@ export default function FolderCard(<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">- <p className="truncate">Updated {timeAgo(folder.updatedAt)}</p>- </div>+ {showLastUpdated && (+ <div className="mt-1 flex items-center space-x-1 text-xs leading-5 text-muted-foreground">+ <p className="truncate">Updated {timeAgo(folder.updatedAt)}</p>+ </div>+ )}</div></div>{allowDownload ? (