Fix "show thread" link position on media posts

This commit is contained in:
Zed 2019-08-13 21:21:54 +02:00
parent c834d418e2
commit 7eb66d65aa
2 changed files with 6 additions and 2 deletions

View File

@ -390,6 +390,10 @@ video, .video-container img {
background-color: #282828;
}
.show-thread {
display: block;
}
.multi-header {
background-color: #161616;
text-align: center;

View File

@ -170,7 +170,7 @@ proc renderQuote(quote: Quote): VNode =
verbatim linkifyText(quote.text)
if quote.hasThread:
a(href=getLink(quote)):
a(class="show-thread", href=getLink(quote)):
text "Show this thread"
proc renderTweet*(tweet: Tweet; prefs: Prefs; class="";
@ -213,5 +213,5 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; class="";
renderStats(tweet.stats)
if tweet.hasThread and "timeline" in class:
a(href=getLink(tweet)):
a(class="show-thread", href=getLink(tweet)):
text "Show this thread"