summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail/components/ProductDetail.tsx
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-29 16:24:11 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-29 16:24:11 +0700
commit4a58bb303ce8dadc6b9d56c7558539c69d3fdb01 (patch)
tree947f6eef431664d81f8ad35b3bc72234db4ada12 /src-migrate/modules/product-detail/components/ProductDetail.tsx
parentdac398aa33f8e57fd17fc9b115cf435c2d877b19 (diff)
(andri) fix table spec jika attribute mengandung html
Diffstat (limited to 'src-migrate/modules/product-detail/components/ProductDetail.tsx')
-rw-r--r--src-migrate/modules/product-detail/components/ProductDetail.tsx23
1 files changed, 22 insertions, 1 deletions
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx
index d63eb365..03089afa 100644
--- a/src-migrate/modules/product-detail/components/ProductDetail.tsx
+++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx
@@ -310,8 +310,29 @@ const ProductDetail = ({ product }: Props) => {
if (strVal.includes('<') && strVal.includes('>')) {
return (
- <div
+ <Box
className="prose prose-sm text-gray-700"
+ sx={{
+ '& ul, & ol': {
+ paddingLeft: '1.2rem',
+ margin: 0,
+ textAlign: 'left'
+ },
+ '& li': {
+ fontWeight: 'normal',
+ marginBottom: '4px',
+ textAlign: 'left'
+ },
+ '& strong': {
+ display: 'block',
+ marginBottom: '2px',
+ fontWeight: 'bold'
+ },
+ '& p': {
+ margin: 0,
+ textAlign: 'left'
+ }
+ }}
dangerouslySetInnerHTML={{ __html: strVal }}
/>
);