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 {
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 {
float: left;
width: 100%;

View File

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