Show exerpt of hidden comments

This commit is contained in:
2020-10-27 00:41:36 +00:00
parent 99d3a234f4
commit 72802a6fcf
2 changed files with 22 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ class Article extends React.Component {
</p>
</div>
<div className='text' dangerouslySetInnerHTML={{ __html: c.text }} />
<div className={collapsed ? 'text hidden' : 'text'} dangerouslySetInnerHTML={{ __html: c.text }} />
{hidden && hasChildren ?
<div className='comment lined info pointer' onClick={() => this.expandComment(cid)}>[show {this.countComments(c)-1} more]</div>