mastodon / mastodon

Your self-hosted, globally interconnected microblogging community
https://joinmastodon.org
GNU Affero General Public License v3.0
47.01k stars 6.96k forks source link

When viewing a long directory in an instance, "Load More" goes to top of the expanded list. #22628

Open larryedwards opened 1 year ago

larryedwards commented 1 year ago

Steps to reproduce the problem

  1. As one example, go to https://fediscience.org/directory
  2. Scroll down until the list does a hard stop and shows "Load More".
  3. Click "Load More"
  4. The top of the newly expanded list is displayed.
  5. The user has to scroll down past what was already seen, in order to get to the new profiles. ...

Expected behaviour

When the listing expands, the first fresh profile should be displayed, with old material above that and other new material below that.

Actual behaviour

Load More always takes the user back to the top of the list.

Detailed description

Details are in the above fields.

Specifications

Firefox 108.0.1 64 bit.

Running Windows 10 Professional (x64) Version 2009 (build 19045.2364)

ClearlyClaire commented 1 year ago

That happens because the “load more” flow causes the whole thing to un-render while it is loading. Most other extensible lists use a different pattern where only the “Load More” marker is shown as loading. This is probably how this should be fixed.