From 698ee3271245c9bc565c1540928d10d3297b91f4 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sat, 22 Jun 2019 10:01:49 +0800 Subject: [PATCH] css --- .../react/src/modules/courses/boards/TopicDetail.js | 10 ++++++---- .../courses/busyWork/reply/CommonWorkAppraiseReply.js | 4 ++-- .../src/modules/courses/common/courseMessage.css | 11 ++++++++--- public/react/src/modules/forums/MemoDetailMDEditor.js | 8 ++++++-- 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/public/react/src/modules/courses/boards/TopicDetail.js b/public/react/src/modules/courses/boards/TopicDetail.js index 0b7c0935c..0c25910f5 100644 --- a/public/react/src/modules/courses/boards/TopicDetail.js +++ b/public/react/src/modules/courses/boards/TopicDetail.js @@ -413,6 +413,7 @@ class TopicDetail extends Component { // md editor.setValue && editor.setValue('') + const user = this._getUser(); this.setState({ comments: addNewComment(comments, _id, content, user) @@ -423,6 +424,7 @@ class TopicDetail extends Component { memo: newMemo2 }) this.refs.editor.showEditor(); + this.refs.editor.close(); } @@ -661,11 +663,11 @@ class TopicDetail extends Component { {/* onClick={ this.createNewComment } enableReplyTo={true} */} -
+
- 全部回复 - {memo.total_replies_count} + 全部回复 + ({memo.total_replies_count})
}
- -
{/* diff --git a/public/react/src/modules/courses/common/courseMessage.css b/public/react/src/modules/courses/common/courseMessage.css index e521b24f5..a7bbd8f1a 100644 --- a/public/react/src/modules/courses/common/courseMessage.css +++ b/public/react/src/modules/courses/common/courseMessage.css @@ -13,7 +13,8 @@ /* 评论 */ /* 改宽度 */ .course-message .panel-comment_item .comment_orig_content { - width: 1024px; + /* width: 1024px; */ + width: 1046px; } /* 子回复按钮 */ .course-message .reply_to_message a.commentsbtn.task-btn-blue { @@ -34,7 +35,7 @@ } .course-message .comment_item_cont:last-child { /* 作品评阅需要 */ - /* border-bottom: none; */ + border-bottom: none; } .course-message .memoMore { @@ -44,4 +45,8 @@ .course-message .memoMore .writeCommentBtn { right: 35px; top: 2px; - } \ No newline at end of file + } + +.panel-comment_item .comment_content { + margin-top: 4px; +} \ No newline at end of file diff --git a/public/react/src/modules/forums/MemoDetailMDEditor.js b/public/react/src/modules/forums/MemoDetailMDEditor.js index 454a40a51..e1811ed8a 100644 --- a/public/react/src/modules/forums/MemoDetailMDEditor.js +++ b/public/react/src/modules/forums/MemoDetailMDEditor.js @@ -128,7 +128,8 @@ class MemoDetailMDEditor extends Component {