fix: load more button loading indicator
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user