diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-29 16:24:11 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-29 16:24:11 +0700 |
| commit | 4a58bb303ce8dadc6b9d56c7558539c69d3fdb01 (patch) | |
| tree | 947f6eef431664d81f8ad35b3bc72234db4ada12 /src-migrate/modules/product-detail/components/ProductDetail.tsx | |
| parent | dac398aa33f8e57fd17fc9b115cf435c2d877b19 (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.tsx | 23 |
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 }} /> ); |
