mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 08:54:37 +08:00
Adding zero state style for 0 counts
This commit is contained in:
@@ -27,9 +27,18 @@
|
||||
}
|
||||
|
||||
.commentSummaryReactions {
|
||||
margin-right: 5px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.reactionCount, .replyCount {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
.countZero {
|
||||
color: #9E9E9E;
|
||||
}
|
||||
|
||||
|
||||
.sidebar {
|
||||
ul {
|
||||
margin-top: 0;
|
||||
|
||||
@@ -25,15 +25,19 @@ class Comment extends React.Component {
|
||||
data={data}
|
||||
queryData={{root, comment, asset: comment.asset}}
|
||||
/>
|
||||
<div className={cn(styles.commentSummary, 'comment_summary')}>
|
||||
<span className={cn(styles.commentSummaryReactions, 'comment_summary_reactions')}>
|
||||
<div className={cn(styles.commentSummary, 'comment-summary')}>
|
||||
<span className={cn(styles.commentSummaryReactions, 'comment-summary-reactions', {[styles.countZero]: reactionCount === 0})}>
|
||||
<Icon name="thumb_up" />
|
||||
{reactionCount}
|
||||
<span className={cn(styles.reactionCount, 'comment-summary-reaction-count')}>
|
||||
{reactionCount}
|
||||
</span>
|
||||
{reactionCount === 1 ? t('common.reaction') : t('common.reactions')}
|
||||
</span>
|
||||
<span className={cn('comment_summary_replies')}>
|
||||
<span className={cn('comment-summary-replies', {[styles.countZero]: comment.replyCount === 0})}>
|
||||
<Icon name="reply" />
|
||||
{comment.replyCount}
|
||||
<span className={cn(styles.replyCount, 'comment-summary-reply-count')}>
|
||||
{comment.replyCount}
|
||||
</span>
|
||||
{comment.replyCount === 1 ? t('common.reply') : t('common.replies')}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user