improve loading spinner's place

This commit is contained in:
Aria Moradi 2021-03-28 01:12:32 +04:30
parent 32dd543562
commit d383939c9f
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import CircularProgress from '@material-ui/core/CircularProgress';
const useStyles = makeStyles({ const useStyles = makeStyles({
loading: { loading: {
margin: '10px 0', margin: '10px auto',
display: 'flex', display: 'flex',
justifyContent: 'center', justifyContent: 'center',
}, },

View File

@ -69,7 +69,7 @@ export default function Manga() {
const chapterCards = ( const chapterCards = (
<LoadingPlaceholder <LoadingPlaceholder
shouldRender shouldRender={chapters.length > 0}
> >
<ol className={classes.chapters}> <ol className={classes.chapters}>
{chapters.map((chapter) => (<ChapterCard chapter={chapter} />))} {chapters.map((chapter) => (<ChapterCard chapter={chapter} />))}