We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac849d commit 1d15df3Copy full SHA for 1d15df3
src/components/Card.tsx
@@ -72,18 +72,16 @@ const Card = ({
72
key={paper._id}
73
className={`w-56 space-y-1 rounded-xl border border-black dark:border-[#7480FF]/25 ${checked ? "bg-[#EEF2FF] dark:bg-[#050b1f]" : ""} p-4 `}
74
>
75
- <Link
76
- href={paper.finalUrl}
77
- onClick={(e) => {
78
- e.preventDefault();
79
- handleOpen();
80
- }}
81
- >
+ <Link href={paper.finalUrl}>
82
<Image
83
src={paper.thumbnailUrl}
84
alt={paper.subject}
85
width={320}
86
height={180}
+ onClick={(e) => {
+ e.stopPropagation(); // Prevents any parent link click from being triggered
+ handleOpen();
+ }}
87
className="mb-2 h-[180px] w-full cursor-pointer object-cover"
88
/>
89
</Link>
0 commit comments