dev_forum
hjm 6 years ago
parent 3145fa9d7d
commit 698ee32712

@ -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}
*/}
<div className="padding30 bor-bottom-greyE memoReplies commentsDelegateParent comments_hideSecondReplyUserHeader"
style={{ display: (comments && !!comments.length) ? 'block' : 'none', paddingTop: '10px' }}>
<div className="padding20 memoReplies commentsDelegateParent comments_hideSecondReplyUserHeader"
style={{ display: (comments && !!comments.length) ? 'block' : 'none', paddingBottom: '0px' }}>
<div className="replies_count">
<span className="labal">全部回复</span>
<span className="count">{memo.total_replies_count}</span>
<span className="labal font-16">全部回复</span>
<span className="count font-16">({memo.total_replies_count})</span>
</div>
<Comments comments={comments} user={current_user}

@ -276,8 +276,8 @@ class CommonWorkAppraiseReply extends Component{
onReply={this.onReply} placeholder={"请在此输入对本作品的评语最大限制2000个字符"}
></GraduationTasksappraiseMainEditor> }
</div>
<div className={`padding20 ${!!comment_scores.length ? 'bor-bottom-greyE' : ''} memoReplies commentsDelegateParent course-message`}
{/* ${!!comment_scores.length ? 'bor-bottom-greyE' : ''} */}
<div className={`padding20 memoReplies commentsDelegateParent course-message`}
style={{ paddingTop: '0px', paddingBottom: '0px' }}
>
{/*

@ -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;
}
}
.panel-comment_item .comment_content {
margin-top: 4px;
}

@ -128,7 +128,8 @@ class MemoDetailMDEditor extends Component {
<style>{`
.mockInputWrapper {
display: flex;
padding: 30px 20px 30px 20px;
padding: 20px 30px 20px 30px;
border-bottom: 1px solid #EEEEEE;
}
.mockInputWrapper input {
flex:1;
@ -146,6 +147,9 @@ class MemoDetailMDEditor extends Component {
width: 60px;
margin-right: 0px !important;
}
.commentInput {
border-bottom: 1px solid #EEEEEE;
}
.commentInput .editormd{
width:100%!important;
}
@ -178,7 +182,7 @@ class MemoDetailMDEditor extends Component {
<div className="editor__resize" href="javascript:void(0);">调整高度</div>
{ errorMsg && <span className="fl" style={{color: 'red', marginTop: '6px',
marginLeft: '4px'}}>{errorMsg}</span> }
<div style={{height: "10px"}}>
<div style={{height: "16px"}}>
<a id={`new_message_submit_btn_${memo.id}`} href="javascript:void(0)"
onClick={this.onCommit} className="commentsbtn task-btn task-btn-blue fr">
{this.props.buttonText || '发送'}

Loading…
Cancel
Save