Likes count after icon

main
Bob Mottram 2020-09-05 12:44:23 +01:00
parent 991c84ccab
commit 14102aede1
2 changed files with 6 additions and 5 deletions

View File

@ -142,6 +142,7 @@ a:focus {
.likesCount { .likesCount {
font-size: var(--font-size-likes); font-size: var(--font-size-likes);
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
float: right;
} }
.about { .about {

View File

@ -4232,6 +4232,11 @@ def individualPostAsHtml(allowDownloads: bool,
if timeDiff > 100: if timeDiff > 100:
print('TIMING INDIV ' + boxName + ' 12.2 = ' + str(timeDiff)) print('TIMING INDIV ' + boxName + ' 12.2 = ' + str(timeDiff))
if likeCountStr:
# show the number of likes next to icon
likeStr += '<label class="likesCount">'
likeStr += likeCountStr.replace('(', '').replace(')', '').strip()
likeStr += '</label>\n'
likeStr = \ likeStr = \
'<a class="imageAnchor" href="/users/' + nickname + '?' + \ '<a class="imageAnchor" href="/users/' + nickname + '?' + \
likeLink + '=' + postJsonObject['object']['id'] + \ likeLink + '=' + postJsonObject['object']['id'] + \
@ -4244,11 +4249,6 @@ def individualPostAsHtml(allowDownloads: bool,
'<img loading="lazy" title="' + likeTitle + likeCountStr + \ '<img loading="lazy" title="' + likeTitle + likeCountStr + \
'" alt="' + likeTitle + \ '" alt="' + likeTitle + \
' |" src="/' + iconsDir + '/' + likeIcon + '"/></a>\n' ' |" src="/' + iconsDir + '/' + likeIcon + '"/></a>\n'
if likeCountStr:
# show the number of likes next to icon
likeStr += '<label class="likesCount">'
likeStr += likeCountStr.replace('(', '').replace(')', '').strip()
likeStr += '</label>\n'
# benchmark 12.5 # benchmark 12.5
if not allowDownloads: if not allowDownloads: