Comments: Fix layout and likes count

This commit is contained in:
veselcraft 2021-11-30 18:34:07 +03:00
parent be965be47d
commit e9635be5a8
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -10,7 +10,7 @@
width="30"
class="cCompactAvatars" />
</td>
<td width="345" valign="top">
<td width="100%" valign="top">
<div class="post-author">
<a href="{$author->getURL()}"><b>
{$author->getCanonicalName()}
@ -37,7 +37,7 @@
<div style="float: right; font-size: .7rem;">
<a class="post-like-button" href="/comment{$comment->getId()}/like?hash={rawurlencode($csrfToken)}">
<div class="heart" style="{if $comment->hasLikeFrom($thisUser)}opacity: 1;{else}opacity: 0.4;{/if}"></div>
<span class="likeCnt">{$comment->getLikesCount()}</span>
<span class="likeCnt">{if $comment->getLikesCount() > 0}{$comment->getLikesCount()}{/if}</span>
</a>
</div>
</div>