From c9e801e005958826b82653acc8d77f120ce3bc1d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 28 Nov 2019 10:18:23 +0000 Subject: [PATCH] Text on media timeline --- epicyon-profile.css | 10 ++++++++++ webinterface.py | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index ba0349c3b..5d0a4c8c6 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -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); diff --git a/webinterface.py b/webinterface.py index d192e573d..14bb4f3fb 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2193,7 +2193,9 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ galleryStr+='\n' + galleryStr+=' \n' + galleryStr+='
'+contentStrMedia+'
\n' + galleryStr+='\n' attachmentStr+='' attachmentStr+=''+imageDescription+'\n' @@ -2436,6 +2438,8 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ # replace 's contentStr=contentStr.replace("\ufffd\ufffd\ufffds","'s") + contentStrMedia=contentStr + contentStr='
'+contentStr+'
' postHtml=''