mirror of
https://github.com/plebbit/seedit.git
synced 2026-04-20 23:28:52 -04:00
perf(feed post): fix img source impacted scroll performance
This commit is contained in:
@@ -63,7 +63,8 @@ const FeedPost: FC<FeedPostProps> = ({ post, index }) => {
|
||||
{commentMediaInfo?.type === 'video' &&
|
||||
(commentMediaInfo.thumbnail ? <img src={commentMediaInfo.thumbnail} alt='thumbnail' /> : <video src={commentMediaInfo.url} />)}
|
||||
{commentMediaInfo?.type === 'webpage' && commentMediaInfo.thumbnail && <img src={commentMediaInfo.thumbnail} alt='thumbnail' />}
|
||||
{commentMediaInfo?.type === 'iframe' && <img src={commentMediaInfo.scrapedThumbnailUrl || commentMediaInfo.thumbnail} alt='thumbnail' />}
|
||||
{commentMediaInfo?.type === 'iframe' && commentMediaInfo.thumbnail && <img src={commentMediaInfo.thumbnail} alt='thumbnail' />}
|
||||
{commentMediaInfo?.type === 'iframe' && commentMediaInfo.scrapedThumbnailUrl && <img src={commentMediaInfo.scrapedThumbnailUrl} alt='thumbnail' />}
|
||||
</Link>
|
||||
</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user