mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Fix thread line gap above pinned tweet threads
This commit is contained in:
parent
f19443ed96
commit
a63368e871
3 changed files with 20 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ proc renderThread(thread: seq[Tweet]; prefs: Prefs; path: string): VNode =
|
|||
let sortedThread = thread.sortedByIt(it.id)
|
||||
for i, tweet in sortedThread:
|
||||
let show = i == thread.high and sortedThread[0].id != tweet.threadId
|
||||
renderTweet(tweet, prefs, path, class="thread",
|
||||
let header = if tweet.pinned or tweet.retweet.isSome: "with-header " else: ""
|
||||
renderTweet(tweet, prefs, path, class=(header & "thread"),
|
||||
index=i, total=thread.high, showThread=show)
|
||||
|
||||
proc threadFilter(it: Tweet; thread: int): bool =
|
||||
|
|
|
|||
Loading…
Reference in a new issue