fix: load more button loading indicator

This commit is contained in:
DIYgod
2023-06-14 15:50:31 +01:00
parent 471dab27a8
commit 8c32e3c08e
2 changed files with 12 additions and 8 deletions
+10 -8
View File
@@ -61,14 +61,16 @@ export default function PostList({
isLoading={posts.isFetchingNextPage}
aria-label="load more"
>
{t("load more", {
ns: "site",
name: t(
"post" +
(posts.data?.pages[0].count - currentLength > 1 ? "s" : ""),
),
count: posts.data?.pages[0].count - currentLength,
})}
<span className="align-middle">
{t("load more", {
ns: "site",
name: t(
"post" +
(posts.data?.pages[0].count - currentLength > 1 ? "s" : ""),
),
count: posts.data?.pages[0].count - currentLength,
})}
</span>
</Button>
</div>
)}
+2
View File
@@ -125,6 +125,8 @@ a {
border-bottom-color: currentColor;
border-right-color: currentColor;
@apply animate-spin;
@apply inline-block;
@apply align-middle;
}
.button.is-block {