Text on media timeline

merge-requests/6/head
Bob Mottram 2019-11-28 10:18:23 +00:00
parent ec8860f782
commit c9e801e005
2 changed files with 15 additions and 1 deletions

View File

@ -35,6 +35,8 @@
--button-height-padding: 10px;
--gallery-border: #ccc;
--gallery-hover: #777;
--gallery-font-size: 22px;
--gallery-font-size-mobile: 30px;
--button-corner-radius: 15px;
--timeline-border-radius: 30px;
}
@ -582,6 +584,10 @@ div.gallery img {
body, html {
font-size: var(--font-size4);
}
div.gallerytext {
color: var(--main-fg-color);
font-size: var(--gallery-font-size);
}
div.gallery {
margin: 5px;
border: 1px solid var(--gallery-border);
@ -867,6 +873,10 @@ div.gallery img {
body, html {
font-size: var(--font-size3);
}
div.gallerytext {
color: var(--main-fg-color);
font-size: var(--gallery-font-size-mobile);
}
div.gallery {
margin: 5px;
border: 1px solid var(--gallery-border);

View File

@ -2193,7 +2193,9 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
galleryStr+='<div class="gallery">\n'
galleryStr+=' <a href="'+attach['url']+'">\n'
galleryStr+=' <img loading="lazy" src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" width="600" height="400">\n'
galleryStr+=' </a>\n</div>\n'
galleryStr+=' </a>\n'
galleryStr+=' <div class="gallerytext">'+contentStrMedia+'</div>\n'
galleryStr+='</div>\n'
attachmentStr+='<a href="'+attach['url']+'">'
attachmentStr+='<img loading="lazy" src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" class="attachment"></a>\n'
@ -2436,6 +2438,8 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
# replace 's
contentStr=contentStr.replace("\ufffd\ufffd\ufffds","'s")
contentStrMedia=contentStr
contentStr='<div class="message">'+contentStr+'</div>'
postHtml=''