fix(loader): Fix loader position

This commit is contained in:
Stuart Taylor
2018-08-03 14:42:50 +01:00
committed by mrugesh mohapatra
parent 1b3f350821
commit a0d5841560
2 changed files with 10 additions and 2 deletions

View File

@ -138,7 +138,11 @@ class Featured extends Component {
featuredList featuredList
} = this.state; } = this.state;
if (pending || !complete) { if (pending || !complete) {
return <Loader />; return (
<div className='full-size' style={{ position: 'fixed', left: 0 }}>
<Loader />
</div>
);
} }
if (complete && errored) { if (complete && errored) {

View File

@ -162,7 +162,11 @@ class ShowArticle extends Component {
currentArticle currentArticle
} = this.state; } = this.state;
if (pending || !complete) { if (pending || !complete) {
return <Loader />; return (
<div className='full-size' style={{ position: 'fixed', left: 0 }}>
<Loader />
</div>
);
} }
if (complete && errored) { if (complete && errored) {