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

Commit

Permalink
- ayah's have link (discuss, maybe not needed)
Browse files Browse the repository at this point in the history
- Fix audio player playing text
- Remove unneeded padding on mobile
- Hide Share on mobile devices (native share is built into the browsers)
  • Loading branch information
thabti committed Jul 5, 2016
1 parent 39a232b commit 34fabde
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/components/Audioplayer/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
text-align: center;

:global(li){
padding-left: 15px;
padding-right: 15px;
display: table-cell;
}
Expand Down
8 changes: 7 additions & 1 deletion src/components/Ayah/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,13 @@ export default class Ayah extends Component {
);
}

return content;
return (
<Link
to={`/${this.props.ayah.surahId}:${this.props.ayah.ayahNum}`}
data-metrics-event-name="Ayah:Link"
>
{content}
</Link>);
}

renderControls() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Share/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class Share extends Component {
const surahUrl = encodeURIComponent(`http://quran.com/${surahId}`);

return (
<div className={Style.shareContainer}>
<div className={`${Style.shareContainer} hidden-xs`}>

<i
onClick={() => this.onClickPopup(`https://www.facebook.com/sharer/sharer.php?u=${surahUrl}`, 'Facebook')}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Share/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@import '../../styles/variables';

.shareContainer {
position: relative;
bottom: 2px;
left: 5px;
top: 2px;

.iconContainer {
padding: 0 30px 10px 0;
Expand Down Expand Up @@ -30,5 +32,3 @@
}

}


5 changes: 5 additions & 0 deletions src/components/SurahInfo/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ $transition-speed: 0.75s;
min-height: 0px;
transition: max-height $transition-speed, height $transition-speed;


@media(max-width: $screen-xs-max) {
margin-bottom: 0;
}

&.show{
max-height: 600px;
max-height: 70vh;
Expand Down
4 changes: 4 additions & 0 deletions src/containers/Home/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
padding: 50px 0px;
font-size: 14px;
margin: 0px;

@media(max-width: $screen-xs-max) {
padding: 10px 0;
}
}

.lastVisit{
Expand Down
1 change: 0 additions & 1 deletion src/containers/Surah/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ export default class Surah extends Component {
onReadingModeToggle={toggleReadingMode}
/>
</li>
<li>|</li>
<li><Share surah={surah} /></li>
</ul>
</Col>
Expand Down

0 comments on commit 34fabde

Please sign in to comment.