From 5a99be42830e81d104c48c98104fbcabfc23a445 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 3 May 2023 16:08:26 +0700
Subject: fix margin page content

---
 src/lib/content/components/PageContent.jsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(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 5b5b0f8f..a2fcde4e 100644
--- a/src/lib/content/components/PageContent.jsx
+++ b/src/lib/content/components/PageContent.jsx
@@ -20,9 +20,7 @@ const PageContent = ({ path }) => {
       'src="/web/image',
       `src="${process.env.NEXT_PUBLIC_ODOO_API_HOST}/web/image`
     )
-    const contentClassNames = ` 
-      container
-      mx-auto
+    const contentClassNames = `
       prose 
       prose-gray 
       prose-a:text-danger-500 
@@ -35,7 +33,11 @@ const PageContent = ({ path }) => {
       prose-hr:my-3
     `
 
-    return <div className={contentClassNames} dangerouslySetInnerHTML={{ __html: parsedContent }} />
+    return (
+      <article className='container mx-auto'>
+        <div className={contentClassNames} dangerouslySetInnerHTML={{ __html: parsedContent }} />
+      </article>
+    )
   }
 
   return <></>
-- 
cgit v1.2.3

