dev_forum
hjm 6 years ago
parent 6b27cca854
commit 40aee552f7

@ -484,7 +484,7 @@ class Comments extends Component {
const goldRewardInputErrorObj = goldRewardInputError ? {'error': 'error'} : {} const goldRewardInputErrorObj = goldRewardInputError ? {'error': 'error'} : {}
return ( return (
<div className="fit -scroll"> <div className="fit -scroll" style={{ 'overflow-x': 'hidden'}}>
{ usingAntdModal ? <Modals { usingAntdModal ? <Modals

@ -241,16 +241,18 @@ class CommonReply extends Component{
.course-message .commentInput { .course-message .commentInput {
padding-bottom: 56px !important; padding-bottom: 56px !important;
} }
.course-message .commentInput.mockInputWrapper { .course-message .commentInput.mockInputWrapper {
padding-bottom: 30px !important; padding-bottom: 20px !important;
} }
.course-message .memoReplies { .course-message .memoReplies {
border-top: 1px solid #EDEDED; /* border-top: 1px solid #EDEDED; */
padding-bottom: 30px;
} }
`}</style> `}</style>
<MemoDetailMDEditor ref="editor" memo={memo} usingMockInput={true} placeholder="说点什么" <MemoDetailMDEditor ref="editor" memo={memo} usingMockInput={true} placeholder="说点什么"
height={160} showError={true} height={160} showError={true}
replyComment={this.replyComment} replyComment={this.replyComment}
commentsLength={comments ? comments.length : 0}
></MemoDetailMDEditor> ></MemoDetailMDEditor>
{/* bor-bottom-greyE */} {/* bor-bottom-greyE */}
<div className="padding40 memoReplies commentsDelegateParent" <div className="padding40 memoReplies commentsDelegateParent"

@ -98,7 +98,7 @@ class SingleEditor extends Component{
} }
} }
if(!answerArray || answerArray.length == 0) { if(!answerArray || answerArray.length == 0) {
this.props.showNotification('请先点击本选择题的正确选项'); return; this.props.showNotification('请先点击选择本选择题的正确选项'); return;
} }
if(!question_title) { if(!question_title) {
this.props.showNotification('请先输入题目题干'); return; this.props.showNotification('请先输入题目题干'); return;

@ -148,13 +148,13 @@ class MemoDetailMDEditor extends Component {
margin-right: 0px !important; margin-right: 0px !important;
} }
.commentInput { .commentInput {
border-bottom: 1px solid #EEEEEE;
} }
.commentInput .editormd{ .commentInput .editormd{
width:100%!important; width:100%!important;
} }
`}</style> `}</style>
<div style={{ display: isInited ? 'none' : ''}} className="mockInputWrapper commentInput" > <div style={{ display: isInited ? 'none' : '', borderBottom: `${this.props.commentsLength == 0 ? 'none' : '1px solid #EEEEEE'}`}}
className="mockInputWrapper commentInput" >
<input onClick={this.onMockInputClick} placeholder={placeholder || '我要回复'}></input> <input onClick={this.onMockInputClick} placeholder={placeholder || '我要回复'}></input>
<a href="javascript:void(0)" <a href="javascript:void(0)"
onClick={this.onMockInputClick} className="commentsbtn task-btn task-btn-blue"> onClick={this.onMockInputClick} className="commentsbtn task-btn task-btn-blue">

Loading…
Cancel
Save