lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Setting for more or less posts per page

Open AlbiGhoul opened this issue 2 years ago • 5 comments

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.

AlbiGhoul avatar Aug 06 '23 01:08 AlbiGhoul

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.

TankieTanuki avatar Feb 05 '24 00:02 TankieTanuki

I would love to see this added.

ghostsquad avatar Mar 03 '25 02:03 ghostsquad

@dullbananas would adding limit for all the cursor paginations be doable? I could also potentially add the user setting mentioned above.

dessalines avatar Mar 03 '25 16:03 dessalines

@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())).

dullbananas avatar Mar 03 '25 18:03 dullbananas

Thanks, I'll start adding that.

dessalines avatar Mar 03 '25 21:03 dessalines