Set Times New Roman as default font and fix font size controls
This commit is contained in:
@@ -41,11 +41,11 @@ const BibleReader: React.FC<BibleReaderProps> = ({ book, chapter, onBack, format
|
|||||||
const getFontSizeClass = () => {
|
const getFontSizeClass = () => {
|
||||||
switch (fontSize) {
|
switch (fontSize) {
|
||||||
case 'small':
|
case 'small':
|
||||||
return 'text-base';
|
return 'text-sm leading-relaxed';
|
||||||
case 'large':
|
case 'large':
|
||||||
return 'text-xl';
|
return 'text-2xl leading-relaxed';
|
||||||
default:
|
default:
|
||||||
return 'text-lg';
|
return 'text-lg leading-relaxed';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ const BibleReader: React.FC<BibleReaderProps> = ({ book, chapter, onBack, format
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Bible Content */}
|
{/* Bible Content */}
|
||||||
<div className={`max-w-3xl mx-auto leading-relaxed ${getFontSizeClass()}`}>
|
<div className={`max-w-3xl mx-auto ${getFontSizeClass()}`}>
|
||||||
{parseBibleText(content)}
|
{parseBibleText(content)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ module.exports = {
|
|||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
serif: ['Georgia', 'Times New Roman', 'serif'],
|
serif: ['Times New Roman', 'Georgia', 'serif'],
|
||||||
|
sans: ['Times New Roman', 'Georgia', 'serif'],
|
||||||
},
|
},
|
||||||
typography: {
|
typography: {
|
||||||
DEFAULT: {
|
DEFAULT: {
|
||||||
|
|||||||
Reference in New Issue
Block a user