fix: website preview card cannot click
This commit is contained in:
@@ -29,7 +29,13 @@ export default function WebPreview({
|
|||||||
|
|
||||||
if (isSmallScreen && image) {
|
if (isSmallScreen && image) {
|
||||||
return (
|
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 />
|
<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="bg-muted p-2 w-full rounded-b-lg">
|
||||||
<div className="text-xs text-muted-foreground">{hostname}</div>
|
<div className="text-xs text-muted-foreground">{hostname}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user