feat: make preview non-clickable

This commit is contained in:
codytseng
2025-03-09 11:22:41 +08:00
parent bda09badcf
commit 188c366e23
3 changed files with 7 additions and 17 deletions

View File

@@ -23,13 +23,11 @@ const Content = memo(
({
event,
className,
size = 'normal',
disableLightbox = false
size = 'normal'
}: {
event: Event
className?: string
size?: 'normal' | 'small'
disableLightbox?: boolean
}) => {
const { content, images, videos, embeddedNotes, lastNonMediaUrl } = preprocess(event)
const isNsfw = isNsfwEvent(event)
@@ -50,7 +48,6 @@ const Content = memo(
images={images}
isNsfw={isNsfw}
size={size}
disableLightbox={disableLightbox}
/>
)
}