fix(CommentItem): 修复评论内容显示问题。
- 将评论内容从文本格式修改为HTML格式,以支持富文本显示。 style(main.css): 优化CSS样式。 - 调整内边距并添加边框样式,改善视觉效果。
This commit is contained in:
@@ -200,7 +200,7 @@ export class CommentItem extends Component {
|
||||
// 设置评论内容的 TEXT
|
||||
const contentEl = root.querySelector('.cwd-comment-content');
|
||||
if (contentEl) {
|
||||
contentEl.innerHTML = comment.contentText;
|
||||
contentEl.innerHTML = comment.contentHtml;
|
||||
}
|
||||
|
||||
// 创建回复编辑器
|
||||
|
||||
@@ -372,9 +372,10 @@
|
||||
background: #fff8c5;
|
||||
color: #9a6700;
|
||||
border-radius: 3px;
|
||||
padding: 1px 4px;
|
||||
padding: 0 6px;
|
||||
font-size: 12px;
|
||||
margin: 0 4px;
|
||||
border: 1px solid #9a6700;
|
||||
}
|
||||
|
||||
.cwd-reply-to-separator {
|
||||
|
||||
Reference in New Issue
Block a user