UX: own post likes glyph margin was off

This commit is contained in:
Arpit Jalan
2018-03-30 10:10:55 +05:30
parent a55b458e56
commit fe17ee6924
4 changed files with 21 additions and 10 deletions

View File

@@ -70,11 +70,11 @@ registerButton('like-count', attrs => {
? count === 1 ? 'post.has_likes_title_only_you' : 'post.has_likes_title_you'
: 'post.has_likes_title';
const icon = attrs.yours ? 'heart' : '';
const additionalClass = attrs.yours ? 'my-likes' : 'regular-likes';
return { action: 'toggleWhoLiked',
title,
className: 'like-count highlight-action',
className: `like-count highlight-action ${additionalClass}`,
contents: count,
icon,
iconRight: true,