fixed highlight bug in Thread.jsx

This commit is contained in:
plebbitor
2023-04-18 11:24:47 +02:00
parent f1a2d543ee
commit 05763d7ede
3 changed files with 734 additions and 735 deletions
+2 -2
View File
@@ -512,7 +512,7 @@ const Thread = () => {
const fallbackImgUrl = "/assets/filedeleted-res.gif";
const shortParentCid = findShortParentCid(reply.parentCid, comment);
return (
<div key={`pc-${reply.cid}-${Math.random()}`} className="reply-container">
<div key={`pc-${reply.cid}`} className="reply-container">
<div key={`sa-${reply.cid}`} className="side-arrows">{'>>'}</div>
<div key={`pr-${reply.cid}`} className="post-reply">
<div key={`pi-${reply.cid}`} className="post-info">
@@ -723,7 +723,7 @@ const Thread = () => {
renderedComments.map((reply) => {
const shortParentCid = findShortParentCid(reply.parentCid, comment);
return (
<div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container">
<div key={`mob-rc-${reply.cid}`} className="reply-container">
<div key={`mob-pr-${reply.cid}`} className="post-reply">
<div key={`mob-pi-${reply.cid}`} className="post-info-mobile">
<button className="post-menu-button-mobile" title="Post menu" style={{ all: 'unset', cursor: 'pointer' }}>...</button>