diff --git a/src/components/article/boxes/ArticleViewLists.jsx b/src/components/article/boxes/ArticleViewLists.jsx index 74de477..d85a0e8 100644 --- a/src/components/article/boxes/ArticleViewLists.jsx +++ b/src/components/article/boxes/ArticleViewLists.jsx @@ -37,7 +37,7 @@ import artikelAutomat, { getArticle } from '../../../automats/artikelAutomat'; import { notifyError } from '../../../utils/notify'; import articleIndexAutomat from '../../../automats/articleIndexAutomat'; import { - MAGENTA_PANEL, + GREEN_PANEL, SHADOW_CARD, WHITE, alpha, @@ -1516,7 +1516,7 @@ export default class ArticleViewLists extends PureComponent { const parentArticle = parentSku ? getArticle(parentSku) : null; return ( - + {/* ── Mode 1: Parent Article ──────────────────────────────────────── */} {isParent ? ( diff --git a/src/components/article/tabs/ArticleSeoTab.jsx b/src/components/article/tabs/ArticleSeoTab.jsx index b23439d..825de36 100644 --- a/src/components/article/tabs/ArticleSeoTab.jsx +++ b/src/components/article/tabs/ArticleSeoTab.jsx @@ -18,6 +18,68 @@ function PanelValue({ label, children }) { ); } +function PanelHtmlValue({ label, html }) { + if (html == null || html === '') return null; + return ( + + {label ? ( + + {label} + + ) : null} + ({ + p: 1.5, + borderRadius: 1.5, + bgcolor: + theme.palette.mode === 'dark' + ? 'rgba(255, 255, 255, 0.08)' + : 'rgba(255, 255, 255, 0.85)', + border: '1px solid', + borderColor: + theme.palette.mode === 'dark' + ? 'rgba(255, 255, 255, 0.12)' + : 'rgba(255, 255, 255, 0.95)', + boxShadow: + theme.palette.mode === 'dark' + ? 'none' + : '0 1px 3px rgba(0, 0, 0, 0.04)', + fontSize: '0.875rem', + lineHeight: 1.55, + color: 'text.primary', + wordBreak: 'break-word', + '& h1, & h2, & h3, & h4, & h5, & h6': { + fontSize: '1rem', + fontWeight: 600, + mt: 1.25, + mb: 0.5, + '&:first-child': { mt: 0 }, + }, + '& p': { + my: 0.5, + '&:first-child': { mt: 0 }, + '&:last-child': { mb: 0 }, + }, + '& ul, & ol': { + pl: 2.5, + my: 0.5, + }, + '& a': { + color: 'primary.main', + textDecoration: 'underline', + }, + })} + dangerouslySetInnerHTML={{ __html: html }} + /> + + ); +} + export default class ArticleSeoTab extends Component { render() { const { article: articleData } = this.props; @@ -27,7 +89,7 @@ export default class ArticleSeoTab extends Component { <> {articleData.slug} {seo} - {desc} + ); }