Separate div for reply avatar

main2
Bob Mottram 2019-09-24 12:15:29 +01:00
parent fc435375fb
commit cb5af23139
2 changed files with 8 additions and 1 deletions

View File

@ -648,6 +648,12 @@ input[type=submit]:hover {
padding: 0px 0px;
}
.timeline-avatar-reply {
margin: 10px auto;
padding: 0px 0px;
width: 5%;
}
.search-result-text {
font-size: var(--font-size);
}

View File

@ -1827,10 +1827,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
replyAvatarUrl=getPersonAvatarUrl(baseDir,replyActor,personCache)
if replyAvatarUrl:
replyAvatarImageInPost= \
'<div class="timeline-avatar-reply">' \
'<a href="'+replyActor+'">' \
'<img src="'+replyAvatarUrl+'" ' \
'title="'+translate['Show profile']+ \
'" alt="Avatar"'+avatarPosition+'/></a>'
'" alt="Avatar"'+avatarPosition+'/></a></div>'
else:
titleStr+=' <img src="/'+iconsDir+'/reply.png" class="announceOrReply"/> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
else: