From 7eb66d65aa0a2f7b3b0b05cc848d0eb3da5fbe5d Mon Sep 17 00:00:00 2001 From: Zed Date: Tue, 13 Aug 2019 21:21:54 +0200 Subject: [PATCH] Fix "show thread" link position on media posts --- public/style.css | 4 ++++ src/views/tweet.nim | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/style.css b/public/style.css index 9fa8570..4b916ef 100644 --- a/public/style.css +++ b/public/style.css @@ -390,6 +390,10 @@ video, .video-container img { background-color: #282828; } +.show-thread { + display: block; +} + .multi-header { background-color: #161616; text-align: center; diff --git a/src/views/tweet.nim b/src/views/tweet.nim index d4ed0ea..2224763 100644 --- a/src/views/tweet.nim +++ b/src/views/tweet.nim @@ -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"