Chapters image size

main
Bob Mottram 2022-05-03 17:57:30 +01:00
parent c267c5f66b
commit d00180e456
2 changed files with 12 additions and 2 deletions

View File

@ -233,6 +233,9 @@ a:focus {
padding: 10px;
margin: 20px 30px;
}
.chapters img {
width: 10%;
}
}
@media screen and (max-width: 1000px) {
@ -310,6 +313,9 @@ a:focus {
padding: 20px;
margin: 30px 40px;
}
.chapters img {
width: 15%;
}
}
@media screen and (max-width: 480px) {
@ -387,4 +393,7 @@ a:focus {
padding: 20px;
margin: 30px 40px;
}
.chapters img {
width: 15%;
}
}

View File

@ -96,11 +96,12 @@ def _html_podcast_chapters(link_url: str,
' <img loading="lazy" ' + \
'decoding="async" ' + \
'src="' + chapter['img'] + \
'" alt="" class="chapter-image" />\n' + \
'" alt="" />\n' + \
' ' + chapter_title + '\n' + \
' </li>\n'
if chapters_html:
html_str = '<ul>\n' + chapters_html + '</ul>\n'
html_str = \
'<ul class="chapters">\n' + chapters_html + '</ul>\n'
return html_str