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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.show-thread {
 | 
			
		||||
    display: block;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.multi-header {
 | 
			
		||||
    background-color: #161616;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue