utterances icon indicating copy to clipboard operation
utterances copied to clipboard

Folding or hiding long comment thread

Open rednafi opened this issue 5 years ago • 2 comments

Long comment threads can make scrolling extra tedious. Can we get an option to fold the comment thread to hide the individual comments?

rednafi avatar Jun 22 '20 07:06 rednafi

I think folding is already implemented and is controlled by PAGE_SIZE in github.ts. Maybe it's useful to allow users to change it?

Setting PAGE_SIZE=1: 1

However, the issue with this is only PAGE_SIZE comments will be loaded when Load more is clicked, in the above case only 1. One solution could be setting load callback function in utterances.ts to load a certain number of comments instead of just a single comment page. But getting the numbers right could be fiddly.

Would this be desirable?

WeixuanZ avatar Aug 02 '20 15:08 WeixuanZ

I think folding is already implemented and is controlled by PAGE_SIZE in github.ts. Maybe it's useful to allow users to change it?

Setting PAGE_SIZE=1: 1

However, the issue with this is only PAGE_SIZE comments will be loaded when Load more is clicked, in the above case only 1. One solution could be setting load callback function in utterances.ts to load a certain number of comments instead of just a single comment page. But getting the numbers right could be fiddly.

Would this be desirable?

That would be still better than nothing.

rednafi avatar Aug 02 '20 16:08 rednafi