lbry-desktop/ui
infinite-persistence 91be939c19
Fix linked-comment scrolling (again)
## Issue
Now that we batch-resolve the comment authors before displaying the comments, the linked-comment scrolling logic didn't work well with nested replies.

## Change
Previously, I didn't want to put the logic at the lowest level (`Comment`) because it was hard for the child to know whether to scroll or not. For example, we don't want to scroll when user changes the comment filters or presses the Refresh Comments button.

Relented and moved the logic to `Comment`, and pass a flag via `window` (I know this is frowned upon by some) to indicate whether a scrolling is needed.

This is probably more efficient overall as we don't need to scan the DOM, and with minimal delay as we scroll immediately after the linked-comment is mounted.

## Known issues
In markdown posts with lots of images, a layout shift due to delayed inline-image fetching can cause the scrolling to be inaccurate. This should be fixed by reserving space for markdown post images.
2021-10-16 13:40:33 +08:00
..
component Fix linked-comment scrolling (again) 2021-10-16 13:40:33 +08:00
constants Odysee references revamp, part1 2021-10-08 15:22:07 -04:00
effects Livestream category improvements (#7115) 2021-09-24 10:26:21 -04:00
modal i18n - ChannelMention and other fixes 2021-10-01 08:12:37 +08:00
page Odysee references revamp, part1 2021-10-08 15:22:07 -04:00
redux Send video bitrate and user bandwidth to Watchman (#7145) 2021-10-06 14:59:33 -04:00
scss Fix markdown preview word break (#70) 2021-10-13 16:31:12 -04:00
util [Comment/Livestream] Markdown and style fixes (#55) 2021-10-12 17:06:20 -04:00
analytics.js Ads setup (#62) 2021-10-13 11:04:03 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Comment Moderation - time based bans 2021-09-03 07:17:56 +08:00
i18n.js Revert "Simplify language lists" 2021-04-06 15:42:27 -04:00
index.jsx bugfix 2021-07-29 12:58:25 -04:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
recsys.js Fix recsys submission when user is null (#54) 2021-10-12 12:10:35 -04:00
reducers.js wip 2021-06-08 13:25:52 -04:00
rewards.js When a new reward is acquired, only close modals if the reward comes from reward_code 2021-01-08 08:16:41 -07:00
store.js sync edited playlists 2021-08-03 11:47:54 -04:00