From fe4571fa6c0233c69b7cb1d1401a529275c6fccd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 14 Aug 2020 20:31:19 +0100 Subject: [PATCH] Images can be accessed via tab key --- epicyon-profile.css | 4 ++++ webinterface.py | 37 ++++++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 4b1ee8193..ffc57c162 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -76,6 +76,10 @@ body, html { font-size: var(--font-size); } +.imageAnchor:focus img{ + border: 2px solid blue; +} + h1 { color: var(--title-color); } diff --git a/webinterface.py b/webinterface.py index c1e7af23e..ad20c625d 100644 --- a/webinterface.py +++ b/webinterface.py @@ -3718,7 +3718,7 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, nickname, domain, displayName, False) - avatarLink = ' ' + avatarLink = ' ' avatarLink += \ '  ' @@ -3726,7 +3726,8 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, if showAvatarOptions and \ fullDomain + '/users/' + nickname not in postActor: avatarLink = \ - ' \n' avatarLink += \ ' ' + displayName + '\n' else: @@ -3812,7 +3814,8 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, # pprint(postJsonObject) print('ERROR: no actorDomain') titleStr += \ - '@' + actorNickname + '@' + actorDomain + '\n' @@ -3843,19 +3846,20 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, replyStr = '' if isPublicRepeat: replyStr += \ - '\n' else: if isDM(postJsonObject): replyStr += \ - '\n' else: replyStr += \ - '\n' @@ -3871,7 +3875,7 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, if isBlogPost(postJsonObject): if '/statuses/' in postJsonObject['object']['id']: editStr += \ - '\n' deleteStr += \ @@ -3975,7 +3980,7 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, else: if not isMuted: muteStr = \ - '\n' @@ -3986,7 +3991,8 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, '" src="/' + iconsDir + '/mute.png"/>\n' else: muteStr = \ - '\n' @@ -4044,7 +4050,8 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, idx = 'Show options for this person' replyAvatarImageInPost = \ '
\n' \ - '