dev_forum
hjm 6 years ago
parent 279af48aba
commit cb9c4d2115

@ -39,14 +39,14 @@ class NullChildEditor extends Component{
let { question_title, question_score, question_type, question_choices, standard_answers } = this.state; let { question_title, question_score, question_type, question_choices, standard_answers } = this.state;
let { question_id, index, onAnswerChange, addChildAnswer, toMDMode, exerciseIsPublish, let { question_id, index, onAnswerChange, addChildAnswer, toMDMode, exerciseIsPublish,
answers } = this.props; answers } = this.props;
// marginTop: '18px'
return( return(
<div className="df" style={{ marginTop: '18px'}}> <div className="df" style={{ }}>
<div className="color-grey-6 mb5 mt6" style={{ flex: '0 0 90px'}}>答案(填空{index + 1}):</div> <div className="color-grey-6 mb5 mt6" style={{ flex: '0 0 90px'}}>答案(填空{index + 1}):</div>
<div className="df flex1" style={{flexDirection: 'column'}}> <div className="df flex1" style={{flexDirection: 'column'}}>
{ {
answers.map((item, itemIndex) => { answers.map((item, itemIndex) => {
return <div className="df mb20 flex1" > return <div className="df flex1" >
<div className="flex1" style={{ flex: '0 0 1000px'}}> <div className="flex1" style={{ flex: '0 0 1000px'}}>
<DMDEditor <DMDEditor
className={'nullChildEditor'} className={'nullChildEditor'}

@ -282,7 +282,7 @@ class NullEditor extends Component{
display: inline-block; display: inline-block;
} }
.content_editorMd_show { .content_editorMd_show {
display: flex;
maxWidth: 1000px; maxWidth: 1000px;
} }
`}</style> `}</style>

@ -219,9 +219,10 @@ class SingleEditor extends Component{
} }
.optionRow { .optionRow {
margin:0px!important; margin:0px!important;
margin-bottom: 20px!important; /* margin-bottom: 20px!important; */
} }
.signleEditor .content_editorMd_show{ .signleEditor .content_editorMd_show{
display: flex;
margin-top:0px!important; margin-top:0px!important;
border-radius:2px; border-radius:2px;
max-width: 1056px; max-width: 1056px;

Loading…
Cancel
Save