Skip to content

Commit 4c1ff08

Browse files
committed
feat: add paper preview modal on eye icon click
1 parent 1ae7e52 commit 4c1ff08

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Card.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const Card = ({ paper, onSelect, isSelected }: CardProps) => {
8181
size={22}
8282
className="cursor-pointer"
8383
onClick={(e) => {
84+
e.preventDefault();
8485
e.stopPropagation();
8586
setPreviewOpen(true);
8687
}}
@@ -132,7 +133,7 @@ const Card = ({ paper, onSelect, isSelected }: CardProps) => {
132133
133134
</button>
134135
<iframe
135-
src={paper.file_url}
136+
src={getSecureUrl(paper.file_url)}
136137
className="w-full h-full rounded-md"
137138
/>
138139
</div>

0 commit comments

Comments
 (0)