From 392c4115c6e88facc51299041517107db62e833b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 17 Nov 2020 10:29:28 +0000 Subject: [PATCH] Style of replied to handle --- epicyon-profile.css | 8 ++++++++ webapp_post.py | 22 ++++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 94545124..fe92bbb7 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -217,6 +217,10 @@ blockquote p { margin: -4px 5px; } +.imageAnchor { + font-family: var(--header-font); +} + .imageAnchor:focus img{ border: 2px solid var(--focus-color); } @@ -530,6 +534,10 @@ a:focus { background: var(--link-bg-color); } +.announceOrReply { + font-family: var(--header-font); +} + .container img.announceOrReply { float: none; width: 30px; diff --git a/webapp_post.py b/webapp_post.py index 002f89c6..2b67010e 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -758,7 +758,8 @@ def individualPostAsHtml(allowDownloads: bool, iconsPath + '/repeat_inactive.png" ' + \ 'class="announceOrReply"/>\n' + \ ' ' + \ + postJsonObject['object']['id'] + '" ' + \ + 'class="announceOrReply">' + \ announceDisplayName + '\n' # show avatar of person replied to announceActor = \ @@ -804,7 +805,8 @@ def individualPostAsHtml(allowDownloads: bool, '/repeat_inactive.png" ' + \ 'class="announceOrReply"/>\n' + \ ' @' + \ + postJsonObject['object']['id'] + '" ' + \ + 'class="announceOrReply">@' + \ announceNickname + '@' + \ announceDomain + '\n' else: @@ -816,7 +818,7 @@ def individualPostAsHtml(allowDownloads: bool, 'class="announceOrReply"/>\n' + \ ' @unattributed\n' + '" class="announceOrReply">@unattributed\n' else: titleStr += \ ' ' + \ @@ -826,7 +828,8 @@ def individualPostAsHtml(allowDownloads: bool, '/repeat_inactive.png" ' + \ 'class="announceOrReply"/>\n' + \ ' @unattributed\n' + postJsonObject['object']['id'] + '" ' + \ + 'class="announceOrReply">@unattributed\n' else: if postJsonObject['object'].get('inReplyTo'): containerClassIcons = 'containericons darker' @@ -892,7 +895,8 @@ def individualPostAsHtml(allowDownloads: bool, 'class="announceOrReply"/>\n' + \ ' ' + \ '' + replyDisplayName + '\n' + '" class="announceOrReply">' + \ + replyDisplayName + '\n' # benchmark 13.7 if not allowDownloads: @@ -953,7 +957,8 @@ def individualPostAsHtml(allowDownloads: bool, iconsPath + '/reply.png" ' + \ 'class="announceOrReply"/>\n' + \ ' @' + \ + inReplyTo + '" ' + \ + 'class="announceOrReply">@' + \ replyNickname + '@' + \ replyDomain + '\n' else: @@ -967,7 +972,7 @@ def individualPostAsHtml(allowDownloads: bool, '/reply.png" class="announceOrReply"/>\n' + \ ' @unknown\n' + '" class="announceOrReply">@unknown\n' else: postDomain = \ postJsonObject['object']['inReplyTo'] @@ -986,7 +991,8 @@ def individualPostAsHtml(allowDownloads: bool, 'class="announceOrReply"/>\n' + \ ' ' + postDomain + '\n' + '" class="announceOrReply">' + \ + postDomain + '\n' # benchmark 14 if not allowDownloads: