Skip to content

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

Merge branch 'main' into cursor/PM-466-folder-customization-options-4a78

Marc Seitze8f05a091876
diff --cc .cursor/skills/vercel-react-best-practices~main
index 00000000,e567923b..e567923b
mode 000000,120000..120000
--- a/.cursor/skills/vercel-react-best-practices~main
+++ b/.cursor/skills/vercel-react-best-practices~main
diff --cc .cursor/skills/web-design-guidelines~main
index 00000000,886b26de..886b26de
mode 000000,120000..120000
--- a/.cursor/skills/web-design-guidelines~main
+++ b/.cursor/skills/web-design-guidelines~main
diff --cc components/view/dataroom/folder-card.tsx
index acb34b34,2d5b83ac..abd949e9
--- a/components/view/dataroom/folder-card.tsx
+++ b/components/view/dataroom/folder-card.tsx
@@@ -102,38 -68,31 +69,40 @@@ 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} />
+ {(() => {
+ const FolderIconComponent = getFolderIcon(folder.icon);
+ const colorClasses = getFolderColorClasses(folder.color);
+ return (
+ <FolderIconComponent
+ className={`h-8 w-8 ${colorClasses.iconClass}`}
+ 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 ? (