This website requires JavaScript.
Explore
Help
Register
Sign in
LBRYCommunity
/
lbry-desktop
Watch
1
Star
0
Fork
You've already forked lbry-desktop
0
Code
Issues
596
Pull requests
6
Projects
Releases
238
Packages
Wiki
Activity
fiat-tip-improvements
lbry-desktop
/
ui
/
constants
/
classnames.js
2 lines
59 B
JavaScript
Raw
Permalink
Normal View
History
Unescape
Escape
Fix linked-comment auto scroll ## Ticket 6946: Linked-comment scroll position is inconsistent ## Issues - If it is a deeply-nested reply, the positioning is incorrect. - If there are pinned comments, the positioning is way off. - If there is a delay in mounting, the positioning doesn't happen. - When clicking on the comment's date to highlight it, the comment goes missing and the scroll position is weird. ## Changes - Take into account that replies can be linked-comments. - Perform a "one-time" search for the linked-comment after the initial fetch, if necessary. The expensive DOM search is only be executed minimally.
2021-09-01 09:55:00 +02:00
export
const
COMMENT
_HIGHLIGHTED
=
'comment--highlighted'
;
Reference in a new issue
Copy permalink