Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/components/Loader/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import React from 'react';

import LocaleFormattedMessage from 'components/LocaleFormattedMessage';

const styles = require('./style.scss');

const Loader = () => (
<div className={styles.loader}>
<LocaleFormattedMessage id="app.loading" defaultMessage="Loading..." />
<div className="text-center">
<i className="fa fa-circle-o-notch fa-spin fa-3x fa-fw text-center text-primary" />
</div>
);

Expand Down
4 changes: 2 additions & 2 deletions src/containers/Surah/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class Surah extends Component {
const { surah, options, actions } = this.props; // eslint-disable-line no-shadow
debug('component:Surah', 'Render');

if (!this.hasAyahs()) return <div style={{ margin: '50px auto' }}><Loader /></div>;
if (!this.hasAyahs()) return <div className={style.container} style={{ margin: '50px auto' }}><Loader /></div>;

return (
<div className="surah-body">
Expand Down Expand Up @@ -428,7 +428,7 @@ class Surah extends Component {
>
{this.renderSidebar()}
</Sidebar>
<div className={`container-fluid ${style['surah-container']}`}>
<div className={`container-fluid ${style.container}`}>
<div className="row">
<SurahInfo
surah={surah}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Surah/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
border-right: 1px solid rgba(173, 170, 156, 0.5);
}

.surah-container {
.container {
padding-top: 70px;
min-height: 80vh;

Expand Down