mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update Thread.jsx
This commit is contained in:
@@ -650,10 +650,12 @@ const Thread = () => {
|
|||||||
</div>
|
</div>
|
||||||
{replyMediaInfo?.type === "webpage" ? (
|
{replyMediaInfo?.type === "webpage" ? (
|
||||||
<span key={`fta-${index}`} className="file-thumb-reply">
|
<span key={`fta-${index}`} className="file-thumb-reply">
|
||||||
<img key={`fti-${index}`}
|
{reply.thumbnailUrl ? (
|
||||||
src={reply.thumbnailUrl}
|
<img key={`fti-${index}`}
|
||||||
alt="thumbnail"
|
src={reply.thumbnailUrl}
|
||||||
onError={(e) => e.target.src = fallbackImgUrl} />
|
alt="thumbnail"
|
||||||
|
onError={(e) => e.target.src = fallbackImgUrl} />
|
||||||
|
) : null}
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
{replyMediaInfo?.type === "image" ? (
|
{replyMediaInfo?.type === "image" ? (
|
||||||
@@ -758,7 +760,9 @@ const Thread = () => {
|
|||||||
commentMediaInfo.type === "webpage" ? (
|
commentMediaInfo.type === "webpage" ? (
|
||||||
<div key={`mob-f-${comment.cid}`} className="file-mobile">
|
<div key={`mob-f-${comment.cid}`} className="file-mobile">
|
||||||
<span key={`mob-ft${comment.cid}`} className="file-thumb-mobile">
|
<span key={`mob-ft${comment.cid}`} className="file-thumb-mobile">
|
||||||
<img key={`mob-img-${comment.cid}`} src={comment.thumbnailUrl} alt="thumbnail" onError={(e) => e.target.src = fallbackImgUrl} />
|
{comment.thumbnailUrl ? (
|
||||||
|
<img key={`mob-img-${comment.cid}`} src={comment.thumbnailUrl} alt="thumbnail" onError={(e) => e.target.src = fallbackImgUrl} />
|
||||||
|
) : null}
|
||||||
<div key={`mob-fi-${comment.cid}`} className="file-info-mobile">{commentMediaInfo.type}</div>
|
<div key={`mob-fi-${comment.cid}`} className="file-info-mobile">{commentMediaInfo.type}</div>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user