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
805b607e73
lbry-desktop
/
ui
/
constants
/
classnames.js
3 lines
93 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Move MAIN_CLASS to constants file for better code-splitting. Cross-importing was making things hard to code-split efficiently, because the entire file gets evaluated when imported.
2021-12-10 05:28:37 +01:00
export
const
MAIN
_CLASS
=
'main'
;
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