From 120c425ea3ba67a540eeb827e5f09075c93b7263 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Jan 2020 10:14:10 +0000 Subject: [PATCH] Add extra line to footer if there are attachments, for better vertical spacing --- epicyon-profile.css | 4 ++-- webinterface.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 82790f4fa..5cf7644e9 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -327,9 +327,9 @@ a:link { } .container img.attachment { - max-width: 120%; + max-width: 115%; margin-left: 5%; - width: 120%; + width: 115%; border-radius: 5%; } .container img.right { diff --git a/webinterface.py b/webinterface.py index 0e9f8d0ed..41a0c6861 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2588,7 +2588,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ attachmentStr+=translate['Your browser does not support the audio tag.'] attachmentStr+='' attachmentCtr+=1 - attachmentStr+='
' + attachmentStr+='' publishedStr='' if postJsonObject['object'].get('published'): @@ -2619,7 +2619,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ postJsonObject['object']['sensitive']=False # add an extra line if there is a content warning, for better vertical spacing on mobile - if postJsonObject['object']['sensitive']: + if postJsonObject['object']['sensitive'] or attachmentStr: footerStr='
'+footerStr if not postJsonObject['object'].get('summary'):