-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appearance settings changes #189
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ export default function Commentary({ commentaryData }: Props) { | |
<h1 | ||
className={classNames( | ||
"font-extrabold dark:text-gray-50", | ||
styles.fontSize.heading | ||
styles.fontSize.heading, | ||
styles.lineHeight | ||
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The addition of <h1
className={classNames(
"font-extrabold dark:text-gray-50",
+ styles.fontSize.heading,
+ styles.lineHeight
)}
>
Commentary |
||
)} | ||
> | ||
Commentary | ||
|
@@ -28,7 +29,8 @@ export default function Commentary({ commentaryData }: Props) { | |
key={paragraph} | ||
className={classNames( | ||
"mt-6 mx-auto text-justify dark:text-gray-50 whitespace-pre-wrap", | ||
styles.fontSize.para | ||
styles.fontSize.para, | ||
styles.lineHeight | ||
Comment on lines
+32
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the previous comment, the addition of key={paragraph}
className={classNames(
"mt-6 mx-auto text-justify dark:text-gray-50 whitespace-pre-wrap",
+ styles.fontSize.para,
+ styles.lineHeight
)}
>
{paragraph} |
||
)} | ||
> | ||
{paragraph} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,8 @@ export default function Translation({ translationData }: Props) { | |
<h1 | ||
className={classNames( | ||
"font-extrabold dark:text-gray-50", | ||
styles.fontSize.heading | ||
styles.fontSize.heading, | ||
styles.lineHeight | ||
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The addition of <h1
className={classNames(
"font-extrabold dark:text-gray-50",
+ styles.fontSize.heading,
+ styles.lineHeight
)}
>
Translation |
||
)} | ||
> | ||
Translation | ||
|
@@ -23,7 +24,8 @@ export default function Translation({ translationData }: Props) { | |
<p | ||
className={classNames( | ||
"mt-6 mx-auto text-justify dark:text-gray-50 ", | ||
styles.fontSize.para | ||
styles.fontSize.para, | ||
styles.lineHeight | ||
Comment on lines
+27
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the previous comment, the addition of <p
className={classNames(
"mt-6 mx-auto text-justify dark:text-gray-50 ",
+ styles.fontSize.para,
+ styles.lineHeight
)}
>
{translationData[0].description} |
||
)} | ||
> | ||
{translationData[0].description} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ function useMyStyles() { | |
fontSize: { | ||
heading: "text-4xl", | ||
subHeading1: "text-intro", | ||
subHeading2: "text-paragraph", | ||
subHeading2: "text-xl", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change from "text-paragraph" to "text-xl" for - subHeading2: "text-xl",
+ subHeading2: "text-paragraph", |
||
para: "text-paragraph", | ||
}, | ||
}; | ||
|
@@ -37,8 +37,8 @@ function useMyStyles() { | |
fontSize: { | ||
heading: "text-3xl", | ||
subHeading1: "text-2xl", | ||
subHeading2: "text-xl", | ||
para: "text-md", | ||
subHeading2: "text-paragraph", | ||
para: "text-base", | ||
Comment on lines
+40
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes in font sizes for - subHeading2: "text-paragraph",
- para: "text-base",
+ subHeading2: "text-xl",
+ para: "text-md", |
||
}, | ||
}; | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeRabbit
The dynamic class name
bg-${styles.backgroundColor}
might not work as expected if the value ofstyles.backgroundColor
is not a valid Tailwind CSS color. Ifstyles.backgroundColor
can be an arbitrary color, consider using inline styles instead.