Spaces:
Running
Running
Commit ·
e797747
1
Parent(s): 12029d4
feat: justify body text for better readability
Browse files
webapp/tipitaka-web/src/components/layout/ReaderPanel.tsx
CHANGED
|
@@ -25,7 +25,7 @@ const renderContent = (html: string, fontSize: number, endMarkers: string[]) =>
|
|
| 25 |
>
|
| 26 |
{html ? (
|
| 27 |
<div
|
| 28 |
-
className="content-body leading-[2.1] text-
|
| 29 |
dangerouslySetInnerHTML={{ __html: html }}
|
| 30 |
/>
|
| 31 |
) : (
|
|
@@ -89,9 +89,9 @@ const renderFirstPage = (html: string, fontSize: number, volumeTitle: string) =>
|
|
| 89 |
className="first-page-top leading-[2.1]"
|
| 90 |
dangerouslySetInnerHTML={{ __html: topPart }}
|
| 91 |
/>
|
| 92 |
-
{/* Bottom: after homage — normal h4 styling, text-
|
| 93 |
<div
|
| 94 |
-
className="content-body leading-[2.1] text-
|
| 95 |
dangerouslySetInnerHTML={{ __html: bottomPart }}
|
| 96 |
/>
|
| 97 |
</>
|
|
|
|
| 25 |
>
|
| 26 |
{html ? (
|
| 27 |
<div
|
| 28 |
+
className="content-body leading-[2.1] text-justify"
|
| 29 |
dangerouslySetInnerHTML={{ __html: html }}
|
| 30 |
/>
|
| 31 |
) : (
|
|
|
|
| 89 |
className="first-page-top leading-[2.1]"
|
| 90 |
dangerouslySetInnerHTML={{ __html: topPart }}
|
| 91 |
/>
|
| 92 |
+
{/* Bottom: after homage — normal h4 styling, text-justify */}
|
| 93 |
<div
|
| 94 |
+
className="content-body leading-[2.1] text-justify"
|
| 95 |
dangerouslySetInnerHTML={{ __html: bottomPart }}
|
| 96 |
/>
|
| 97 |
</>
|