From 93832023b7c2f560bd90a02e9768d0fccec79078 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 3 May 2023 16:03:45 +0700
Subject: whatsapp url

---
 src/lib/content/components/PageContent.jsx | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 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 61e5381d..5b5b0f8f 100644
--- a/src/lib/content/components/PageContent.jsx
+++ b/src/lib/content/components/PageContent.jsx
@@ -6,6 +6,14 @@ const PageContent = ({ path }) => {
   const fetchContent = async () => await pageContentApi({ path })
   const content = useQuery(`content-${path}`, fetchContent)
 
+  if (content.isLoading) {
+    return (
+      <div className='flex justify-center my-6'>
+        <Spinner className='w-6 text-gray_r-12/50 fill-gray_r-12' />
+      </div>
+    )
+  }
+
   if (content.data?.id) {
     let parsedContent = content.data.content
     parsedContent = parsedContent.replaceAll(
@@ -13,6 +21,8 @@ const PageContent = ({ path }) => {
       `src="${process.env.NEXT_PUBLIC_ODOO_API_HOST}/web/image`
     )
     const contentClassNames = ` 
+      container
+      mx-auto
       prose 
       prose-gray 
       prose-a:text-danger-500 
@@ -28,14 +38,6 @@ const PageContent = ({ path }) => {
     return <div className={contentClassNames} dangerouslySetInnerHTML={{ __html: parsedContent }} />
   }
 
-  if (content.isLoading) {
-    return (
-      <div className='flex justify-center my-6'>
-        <Spinner className='w-6 text-gray_r-12/50 fill-gray_r-12' />
-      </div>
-    )
-  }
-
   return <></>
 }
 
-- 
cgit v1.2.3


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


From 992c7415988cc76338c991731f21d225e5330fa5 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 3 May 2023 16:39:46 +0700
Subject: fix layout content

---
 src/lib/content/components/PageContent.jsx | 6 +-----
 1 file changed, 1 insertion(+), 5 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 a2fcde4e..1d6b046f 100644
--- a/src/lib/content/components/PageContent.jsx
+++ b/src/lib/content/components/PageContent.jsx
@@ -33,11 +33,7 @@ const PageContent = ({ path }) => {
       prose-hr:my-3
     `
 
-    return (
-      <article className='container mx-auto'>
-        <div className={contentClassNames} dangerouslySetInnerHTML={{ __html: parsedContent }} />
-      </article>
-    )
+    return <div className={contentClassNames} dangerouslySetInnerHTML={{ __html: parsedContent }} />
   }
 
   return <></>
-- 
cgit v1.2.3


From 118223a4a065676f5703c944768466f150528ccb Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 4 May 2023 15:55:22 +0700
Subject: fixing page content

---
 src/lib/content/components/PageContent.jsx | 1 +
 1 file changed, 1 insertion(+)

(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 1d6b046f..8c467999 100644
--- a/src/lib/content/components/PageContent.jsx
+++ b/src/lib/content/components/PageContent.jsx
@@ -31,6 +31,7 @@ const PageContent = ({ path }) => {
       prose-img:mb-1 
       prose-img:inline-block
       prose-hr:my-3
+      max-w-none
     `
 
     return <div className={contentClassNames} dangerouslySetInnerHTML={{ __html: parsedContent }} />
-- 
cgit v1.2.3

