Fix: Reading switch style fixes added
This commit is contained in:
parent
cc8f30a8ce
commit
762215e14a
@ -122,10 +122,7 @@ const SurahPage = ({ surah, prevSurah, nextSurah }) => {
|
|||||||
{`<<< ${t('surah.title')} ${getSurahName(prevSurah, language)}`}
|
{`<<< ${t('surah.title')} ${getSurahName(prevSurah, language)}`}
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span><Switch style={{backgroundColor: isReadingMode ? '#4DB6AC' : '#999999'}} checkedChildren={<span className={styles.switch}><FaBookOpen /></span>} unCheckedChildren={<span className={styles.switch}><FaBook /></span>} defaultChecked onChange={() => setIsReadingMode(!isReadingMode)} /></span>
|
|
||||||
|
|
||||||
<span className={styles.navButtonWrapper}>
|
<span className={styles.navButtonWrapper}>
|
||||||
{nextSurah && (
|
{nextSurah && (
|
||||||
<Link href={`/quran/${nextSurah.number}`} className={styles.navButton}>
|
<Link href={`/quran/${nextSurah.number}`} className={styles.navButton}>
|
||||||
@ -135,6 +132,9 @@ const SurahPage = ({ surah, prevSurah, nextSurah }) => {
|
|||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.box_details}><Switch style={{backgroundColor: isReadingMode ? '#4DB6AC' : '#999999'}} checkedChildren={<span className={styles.switch}><FaBookOpen /></span>} unCheckedChildren={<span className={styles.switch}><FaBook /></span>} defaultChecked onChange={() => setIsReadingMode(!isReadingMode)} /></div>
|
||||||
|
|
||||||
{prefaceText && (
|
{prefaceText && (
|
||||||
<p className={styles.bismillah}>{prefaceText}</p>
|
<p className={styles.bismillah}>{prefaceText}</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -191,7 +191,6 @@
|
|||||||
.navButtonWrapper {
|
.navButtonWrapper {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
min-width: 230px
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navButton {
|
.navButton {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user