Setting for more or less posts per page
Requirements
- [X] This is a feature request and not a bug report. Otherwise, please create a new bug report instead.
- [X] Please check to see if this request (or a similar one) already exists.
- [X] It's a single feature. Please don't request multiple features in one issue.
Describe the feature you'd like
Currently the UI displays only 20 posts per page. Depending circumstances I would like to be able to change that to either 10 or 40.
Related to LemmyNet/lemmy-ui#878, but with less harmful potential.
I would also like a configurable page size. I would set mine to 100 posts (or maybe even 200). I agree it's a good compromise between infinite scroll and no option.
I would love to see this added.
@dullbananas would adding limit for all the cursor paginations be doable? I could also potentially add the user setting mentioned above.
@dessalines Just doing query = query.limit(limit) somewhere before the call to paginate or PaginatedQueryBuilder::new will limit the final results. The current post_view has an example. For adjustable limit, it would be something like query = query.limit(o.limit.unwrap_or(o.local_user.post_limit())).
Thanks, I'll start adding that.