1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed show more appearance

This commit is contained in:
Fedor Katurov 2020-04-09 14:51:52 +07:00
parent c9d45d97dc
commit b38e9d2f1d
2 changed files with 27 additions and 5 deletions

View file

@ -56,6 +56,10 @@ const NodeComments: FC<IProps> = memo(
'комментариев'
)}
{comments_left > COMMENTS_DISPLAY ? ` из ${comments_left} оставшихся` : ''}
<div
className={styles.bar}
style={{ width: `${(comments_left / comment_count) * 100}%` }}
/>
</div>
),
[comments_left, onLoadMore, COMMENTS_DISPLAY]