Skip to content

Commit

Permalink
Added simple img base to link preview
Browse files Browse the repository at this point in the history
  • Loading branch information
vxncetxn committed Oct 7, 2022
1 parent 4d7b925 commit d430856
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ export function Anchor({
{children}
</a>
{previewOpen ? (
<div className="absolute left-1/2 -top-200 -translate-x-1/2 -translate-y-16 bg-white h-200 aspect-video rounded-8 shadow-2xl"></div>
<div className="absolute left-1/2 -top-200 -translate-x-1/2 -translate-y-16 bg-white h-200 aspect-video rounded-8 shadow-2xl p-4">
<img
src="/meta-image.jpg"
alt="test"
className="w-full h-full rounded-4"
/>
</div>
) : null}
</span>
);
Expand Down

0 comments on commit d430856

Please sign in to comment.