fix: website preview card cannot click
This commit is contained in:
parent
d24e208f0b
commit
7826364003
1 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue