Compare commits

...

2 Commits

Author SHA1 Message Date
95e9b8cabf
Fix "load more" button being greyed out falsely 2023-04-07 10:01:18 +02:00
8428f6e70e
Improve loading button animation 2023-04-07 10:00:30 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@
display: flex; display: flex;
overflow: hidden; overflow: hidden;
max-width: 100%; max-width: 100%;
transition: all 0.3s; transition: all 0.3s 0.5s;
} }
/* Cannot be removed, so that it animates its width change */ /* Cannot be removed, so that it animates its width change */

View File

@ -129,7 +129,7 @@ function loadOlderPosts() {
// There shouldn't be any duplicates, but better be safe than sorry // There shouldn't be any duplicates, but better be safe than sorry
data.posts = filterDuplicates(data.posts.concat(resp)); data.posts = filterDuplicates(data.posts.concat(resp));
// If we got less than we expected, there are no older posts available // If we got less than we expected, there are no older posts available
moreOlderPostsAvailable = resp.length < (filter.count ?? 20); moreOlderPostsAvailable = resp.length >= (filter.count ?? 20);
} else { } else {
moreOlderPostsAvailable = false; moreOlderPostsAvailable = false;
} }