Browse Source

fix: website preview card cannot click

imwald
codytseng 12 months ago
parent
commit
7826364003
  1. 8
      src/components/WebPreview/index.tsx

8
src/components/WebPreview/index.tsx

@ -29,7 +29,13 @@ export default function WebPreview({ @@ -29,7 +29,13 @@ export default function WebPreview({
if (isSmallScreen && image) {
return (
<div className="rounded-lg border mt-2">
<div
className="rounded-lg border mt-2"
onClick={(e) => {
e.stopPropagation()
window.open(url, '_blank')
}}
>
<Image image={{ url: image }} className="w-full h-44 rounded-t-lg" hideIfError />
<div className="bg-muted p-2 w-full rounded-b-lg">
<div className="text-xs text-muted-foreground">{hostname}</div>

Loading…
Cancel
Save