Add extra line to footer if there are attachments, for better vertical spacing

merge-requests/6/head
Bob Mottram 2020-01-03 10:14:10 +00:00
parent af59e43860
commit 120c425ea3
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -2588,7 +2588,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
attachmentStr+=translate['Your browser does not support the audio tag.'] attachmentStr+=translate['Your browser does not support the audio tag.']
attachmentStr+='</audio></center>' attachmentStr+='</audio></center>'
attachmentCtr+=1 attachmentCtr+=1
attachmentStr+='<br></div>' attachmentStr+='</div>'
publishedStr='' publishedStr=''
if postJsonObject['object'].get('published'): if postJsonObject['object'].get('published'):
@ -2619,7 +2619,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
postJsonObject['object']['sensitive']=False postJsonObject['object']['sensitive']=False
# add an extra line if there is a content warning, for better vertical spacing on mobile # 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='<br>'+footerStr footerStr='<br>'+footerStr
if not postJsonObject['object'].get('summary'): if not postJsonObject['object'].get('summary'):