diff --git a/src/components/views/Catalog.jsx b/src/components/views/Catalog.jsx index 956b688d..2d74909e 100644 --- a/src/components/views/Catalog.jsx +++ b/src/components/views/Catalog.jsx @@ -342,51 +342,51 @@ const Catalog = () => { const commentMediaInfo = getCommentMediaInfo(thread); const fallbackImgUrl = "/assets/filedeleted-res.gif"; return ( -
- handleClickThread(thread.cid)}> - {commentMediaInfo?.url ? ( - - {commentMediaInfo?.type === "webpage" ? ( - thread { - e.target.src = fallbackImgUrl - e.target.onerror = null;}} /> - ) : null} - {commentMediaInfo?.type === "image" ? ( - thread { - e.target.src = fallbackImgUrl - e.target.onerror = null;}} /> - ) : null} - {commentMediaInfo?.type === "video" ? ( - { - const img = document.querySelector(`img[key="img-${thread.cid}"]`); - if (img) { - img.src = thumbnail; - } - }} - /> - ) : null} - {commentMediaInfo?.type === "audio" ? ( - - ) : null} - - {/*
- -
*/} -
- R: - {thread.replyCount} + handleClickThread(thread.cid)}> +
+ {commentMediaInfo?.url ? ( + + {commentMediaInfo?.type === "webpage" ? ( + thread { + e.target.src = fallbackImgUrl + e.target.onerror = null;}} /> + ) : null} + {commentMediaInfo?.type === "image" ? ( + thread { + e.target.src = fallbackImgUrl + e.target.onerror = null;}} /> + ) : null} + {commentMediaInfo?.type === "video" ? ( + { + const img = document.querySelector(`img[key="img-${thread.cid}"]`); + if (img) { + img.src = thumbnail; + } + }} + /> + ) : null} + {commentMediaInfo?.type === "audio" ? ( + + ) : null} + {/*
+ +
*/} +
+ R: + {thread.replyCount} +
+
+ {thread.title ? `${thread.title}` : null} + {thread.content ? `: ${thread.content}` : null} +
-
- {thread.title ? `${thread.title}` : null} - {thread.content ? `: ${thread.content}` : null} -
-
+ )})} )}