From c24368a607df3ebf78d165b2d20a746da1354838 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 8 Mar 2023 11:12:24 +0700
Subject: update class page content

---
 src/lib/content/components/PageContent.jsx | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

(limited to 'src/lib/content/components/PageContent.jsx')

diff --git a/src/lib/content/components/PageContent.jsx b/src/lib/content/components/PageContent.jsx
index 8b01e0d9..4c17ab54 100644
--- a/src/lib/content/components/PageContent.jsx
+++ b/src/lib/content/components/PageContent.jsx
@@ -12,9 +12,23 @@ const PageContent = ({ path }) => {
       'src="/web/image',
       `src="${process.env.NEXT_PUBLIC_ODOO_HOST}/web/image`
     )
+    const contentClassNames = `
+      p-4 
+      prose 
+      prose-gray 
+      prose-a:text-red_r-10 
+      prose-p:my-0 
+      prose-headings:my-0
+      prose-headings:mb-1
+      prose-img:my-0 
+      prose-img:mb-1 
+      prose-img:inline-block
+      prose-hr:my-3
+    `
+
     return (
       <div
-        className='p-4 prose prose-gray prose-a:text-red_r-10 prose-p:my-0'
+        className={contentClassNames}
         dangerouslySetInnerHTML={{ __html: parsedContent }}
       />
     )
-- 
cgit v1.2.3

