From 938e0e7a8301ab2219fcda5cb3878938ebb77a7a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 22 Aug 2019 10:36:16 +0100 Subject: [PATCH] Reply icon replaces 'replying to' --- epicyon-profile.css | 10 ++++++++-- webinterface.py | 8 ++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index e645677e..a113544a 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -394,8 +394,14 @@ a:link { color: var(--main-fg-color); } -.announce { - width: 50px; +.container img.announceOrReply { + float: none; + width: 30px; + margin: 0 0; + padding: 0 0; + border-radius: 0; + -ms-transform: translateY(25%); + transform: translateY(25%); } .darker { diff --git a/webinterface.py b/webinterface.py index 1cd2da98..eac8cc20 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1128,9 +1128,9 @@ def individualPostAsHtml(baseDir: str, \ if postJsonObject['object'].get('attributedTo'): announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo']) announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo']) - titleStr+=' @'+announceNickname+'@'+announceDomain+'' + titleStr+=' @'+announceNickname+'@'+announceDomain+'' else: - titleStr+=' @unattributed' + titleStr+=' @unattributed' else: if postJsonObject['object'].get('inReplyTo'): containerClassIcons='containericons darker' @@ -1141,12 +1141,12 @@ def individualPostAsHtml(baseDir: str, \ replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo']) replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo']) if replyNickname and replyDomain: - titleStr+=' replying to @'+replyNickname+'@'+replyDomain+'' + titleStr+=' @'+replyNickname+'@'+replyDomain+'' else: postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','') if '/' in postDomain: postDomain=postDomain.split('/',1)[0] - titleStr+=' replying to '+postDomain+'' + titleStr+=' '+postDomain+'' attachmentStr='' if postJsonObject['object']['attachment']: if isinstance(postJsonObject['object']['attachment'], list):