mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
better loadingIcon style
This commit is contained in:
parent
7def0add0c
commit
35f7098a14
@ -1,6 +1,7 @@
|
||||
import React from "react"
|
||||
import * as antd from "antd"
|
||||
import { User } from "models"
|
||||
import { Icons } from "components/Icons"
|
||||
import { PostCard, LoadMore } from "components"
|
||||
|
||||
import "./index.less"
|
||||
@ -9,7 +10,7 @@ const LoadingComponent = () => {
|
||||
// FIXME: Im not sure why but, using <antd.Skeleton> will cause a memory leak of DOM Nodes when using IntersectionObserver
|
||||
//return <antd.Skeleton active />
|
||||
|
||||
return <p>Loading more ...</p>
|
||||
return <p><Icons.LoadingOutlined spin className="loadingIcon" /> Loading more ...</p>
|
||||
}
|
||||
|
||||
const NoResultComponent = () => {
|
||||
|
@ -267,6 +267,18 @@ body {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.loadingIcon {
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
font-size: 1rem;
|
||||
|
||||
svg {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Fixments
|
||||
.ant-btn {
|
||||
display: flex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user