瀏覽代碼

Fix "show thread" link position on media posts

Zed 7 年之前
父節點
當前提交
7eb66d65aa
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 4 0
      public/style.css
  2. 2 2
      src/views/tweet.nim

+ 4 - 0
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;

+ 2 - 2
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"