mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Focus replies when "Load more" clicked
This commit is contained in:
parent
f1529077d7
commit
c25b780c03
3 changed files with 5 additions and 5 deletions
|
|
@ -52,10 +52,10 @@ proc renderConversation*(conversation: Conversation; prefs: Prefs; path: string)
|
|||
renderNewer(Query(), getLink(conversation.tweet))
|
||||
|
||||
if conversation.replies.content.len > 0:
|
||||
tdiv(class="replies"):
|
||||
tdiv(class="replies", id="r"):
|
||||
for thread in conversation.replies.content:
|
||||
if thread == nil: continue
|
||||
renderReplyThread(thread, prefs, path)
|
||||
|
||||
if conversation.replies.hasMore:
|
||||
renderMore(Query(), conversation.replies.minId)
|
||||
renderMore(Query(), conversation.replies.minId, focus="#r")
|
||||
|
|
|
|||
Loading…
Reference in a new issue