Fix "show thread" link position on media posts
This commit is contained in:
		
							parent
							
								
									c834d418e2
								
							
						
					
					
						commit
						7eb66d65aa
					
				| 
						 | 
					@ -390,6 +390,10 @@ video, .video-container img {
 | 
				
			||||||
    background-color: #282828;
 | 
					    background-color: #282828;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.show-thread {
 | 
				
			||||||
 | 
					    display: block;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.multi-header {
 | 
					.multi-header {
 | 
				
			||||||
    background-color: #161616;
 | 
					    background-color: #161616;
 | 
				
			||||||
    text-align: center;
 | 
					    text-align: center;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -170,7 +170,7 @@ proc renderQuote(quote: Quote): VNode =
 | 
				
			||||||
      verbatim linkifyText(quote.text)
 | 
					      verbatim linkifyText(quote.text)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if quote.hasThread:
 | 
					    if quote.hasThread:
 | 
				
			||||||
      a(href=getLink(quote)):
 | 
					      a(class="show-thread", href=getLink(quote)):
 | 
				
			||||||
        text "Show this thread"
 | 
					        text "Show this thread"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
proc renderTweet*(tweet: Tweet; prefs: Prefs; class="";
 | 
					proc renderTweet*(tweet: Tweet; prefs: Prefs; class="";
 | 
				
			||||||
| 
						 | 
					@ -213,5 +213,5 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; class="";
 | 
				
			||||||
        renderStats(tweet.stats)
 | 
					        renderStats(tweet.stats)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if tweet.hasThread and "timeline" in class:
 | 
					        if tweet.hasThread and "timeline" in class:
 | 
				
			||||||
          a(href=getLink(tweet)):
 | 
					          a(class="show-thread", href=getLink(tweet)):
 | 
				
			||||||
            text "Show this thread"
 | 
					            text "Show this thread"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue