Improve how long source URLs are displayed

This commit is contained in:
amrw 2022-01-30 20:42:29 +01:00
parent 7c7709e74f
commit 063523ed4d
No known key found for this signature in database
GPG Key ID: BDE4B0FDD8FA1C85
2 changed files with 13 additions and 4 deletions

View File

@ -749,6 +749,14 @@ footer a {
#post .submitted span { #post .submitted span {
margin-left: 5px; margin-left: 5px;
} }
#post .source-details {
float: left;
margin: 10px 0 10px 30px;
}
#post .source-details summary:hover {
color: var(--linkcolor);
text-decoration: underline;
}
#post .comments { #post .comments {
float: left; float: left;
width: 100%; width: 100%;

View File

@ -163,10 +163,11 @@ html
a(href="" + post.media.embed_src + "", target="_blank", rel="noopener noreferrer") a(href="" + post.media.embed_src + "", target="_blank", rel="noopener noreferrer")
img(src="" + post.images.source + "", alt="") img(src="" + post.images.source + "", alt="")
if !post.media.embed_src.startsWith("https://twitter.com") if !post.media.embed_src.startsWith("https://twitter.com")
p details(class="source-details")
| source: summary Source
a(href="" + post.media.embed_src + "", target="_blank", rel="noopener noreferrer") p
p(class="source-url") #{post.media.embed_src} a(href="" + post.media.embed_src + "", target="_blank", rel="noopener noreferrer")
p(class="source-url") #{post.media.embed_src}
else else
.video .video
a(href="" + post.media.source + "") a(href="" + post.media.source + "")