Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Fixes #557 Scrollbars bouncing (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahalwy authored Jan 10, 2017
1 parent 2cea193 commit 5df07d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
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

0 comments on commit 5df07d4

Please sign in to comment.