main
Bob Mottram 2020-01-03 10:23:42 +00:00
parent c529c42a21
commit 297895365b
2 changed files with 6 additions and 4 deletions

View File

@ -327,9 +327,9 @@ a:link {
}
.container img.attachment {
max-width: 115%;
max-width: 120%;
margin-left: 5%;
width: 115%;
width: 120%;
border-radius: 5%;
}
.container img.right {

View File

@ -2619,8 +2619,10 @@ 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'] or attachmentStr:
footerStr='<p> </p>'+footerStr
if postJsonObject['object']['sensitive']:
footerStr='<br>'+footerStr
if attachmentStr:
footerStr='<br><br><br><br>'+footerStr
if not postJsonObject['object'].get('summary'):
postJsonObject['object']['summary']=''