mirror of https://gitlab.com/bashrc2/epicyon
Add extra line to footer if there are attachments, for better vertical spacing
parent
af59e43860
commit
120c425ea3
|
@ -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 {
|
||||
|
|
|
@ -2588,7 +2588,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
|
|||
attachmentStr+=translate['Your browser does not support the audio tag.']
|
||||
attachmentStr+='</audio></center>'
|
||||
attachmentCtr+=1
|
||||
attachmentStr+='<br></div>'
|
||||
attachmentStr+='</div>'
|
||||
|
||||
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='<br>'+footerStr
|
||||
|
||||
if not postJsonObject['object'].get('summary'):
|
||||
|
|
Loading…
Reference in New Issue