]> cat aescling's git repositories - mastodon.git/commit
Various fixes to scrollable lists and media gallery (#9501)
authorThibG <thib@sitedethib.com>
Wed, 12 Dec 2018 21:32:44 +0000 (22:32 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 12 Dec 2018 21:32:44 +0000 (22:32 +0100)
commit55abff8af75b9a8ab541ec68a3603c77e1339e23
tree12b444cf1bf96b2f3bcbfe8d5f3738c37f9bfb85
parentb048926e678e5b642cb1e939f629236e77944523
Various fixes to scrollable lists and media gallery (#9501)

* Always use the scrollable class for the ScrollList component

Fixes #9499 as well as empty timelines' scrollbar “blinking”
between loading state and empty state.

* Do not display empty message when the list is known to have more elements

Fixes #9500

* Fix LoadMore usage in account media gallery

(Even though that codepath is probably never actually used…)

* Make account media gallery more consistent with account timeline

Fixes #9498

Display “load more” more consistently, add a loading indicator on first load.

* Fix “load more” button when no data has been fetched
app/javascript/mastodon/components/scrollable_list.js
app/javascript/mastodon/components/status_list.js
app/javascript/mastodon/features/account_gallery/index.js
app/javascript/mastodon/features/followers/index.js
app/javascript/mastodon/features/following/index.js