added omitted replies summary

This commit is contained in:
plebbitor
2023-03-05 15:58:29 +01:00
parent 66fdb62bc1
commit 356b0739fd
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -540,6 +540,16 @@ const Board = ({ setBodyStyle }) => {
</div>
</div>
</div>
<span class="summary">
{omittedCount > 0 ? (
<span key={`oc-${thread.cid}`} className="ttl">
<span key={`oc1-${thread.cid}`}>
{omittedCount} post{omittedCount > 1 ? "s" : ""} omitted. Click&nbsp;
<Link key={`oc2-${thread.cid}`} to={`/${selectedAddress}/thread/${thread.cid}`} onClick={() => handleClickThread(thread.cid)} className="ttl-link">here</Link>
&nbsp;to view.
</span>
</span>) : null}
</span>
{renderedComments.map(reply => {
return (
<div key={`pc-${reply.cid}`} className="reply-container">