Conventional image banner

main
Bob Mottram 2020-10-25 18:56:10 +00:00
parent 50763bc93e
commit 574fb37e3e
2 changed files with 3 additions and 9 deletions

View File

@ -1049,12 +1049,7 @@ aside .toggle-inside li {
display: none;
}
.timeline-banner {
background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.5)), url("banner.png");
height: 15%;
background-position: center;
background-repeat: no-repeat;
background-size: 100% 100%;
position: relative;
width: 100vw;
}
.timeline {
border: 0;

View File

@ -3462,7 +3462,7 @@ def htmlProfile(defaultTimeline: str,
# If this is the news account then show a different banner
if isSystemAccount(nickname):
profileHeaderStr = '<div class="timeline-banner"></div>\n'
profileHeaderStr = '<img class="timeline-banner" src="banner.png" />\n'
profileHeaderStr += '<center>' + loginButton + '</center>\n'
profileHeaderStr += '<table class="timeline">\n'
@ -6416,8 +6416,7 @@ def htmlTimeline(defaultTimeline: str,
'<a href="/users/' + nickname + '" title="' + \
translate['Switch to profile view'] + '" alt="' + \
translate['Switch to profile view'] + '">\n'
tlStr += '<div class="timeline-banner">'
tlStr += '</div>\n</a>\n'
tlStr += '<img class="timeline-banner" src="banner.png" />\n'
if fullWidthTimelineButtonHeader:
tlStr += \