From ef6452a524f010cc4a60d6baecce004fbc56bfb3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 3 Oct 2020 20:33:02 +0100 Subject: [PATCH] Edit icon on right --- epicyon-profile.css | 2 ++ webinterface.py | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 384f522b..1e040a0a 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -1019,6 +1019,8 @@ aside .toggle-inside li { .col-right img.rightColEditImage { background: var(--column-left-color); width: var(--column-right-icon-size); + float: right; + margin-right: 40px; } .col-right img.rightColImg { background: var(--column-left-color); diff --git a/webinterface.py b/webinterface.py index 4eba7b6e..cdffc71f 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5305,7 +5305,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, nickname + '/right_col_image.png" />\n' + \ ' \n' - htmlStr += '\n
\n' + if editImageClass == 'rightColEdit': + htmlStr += '\n
\n' if moderator: # show the edit icon @@ -5318,7 +5319,10 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, translate['Edit newswire'] + '" src="/' + \ iconsDir + '/edit.png" />\n' - htmlStr += '
\n' + if editImageClass == 'rightColEdit': + htmlStr += '
\n' + else: + htmlStr += '
\n' return htmlStr