Focus main tweet in threads

This commit is contained in:
Zed
2019-10-22 09:17:58 +02:00
parent 2b7b374708
commit f1529077d7
4 changed files with 12 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ proc renderConversation*(conversation: Conversation; prefs: Prefs; path: string)
for i, tweet in conversation.before.content:
renderTweet(tweet, prefs, path, index=i)
tdiv(class="main-tweet"):
tdiv(class="main-tweet", id="m"):
let afterClass = if hasAfter: "thread thread-line" else: ""
renderTweet(conversation.tweet, prefs, path, class=afterClass,
mainTweet=true)