diff --git a/public/react/src/modules/courses/css/Courses.css b/public/react/src/modules/courses/css/Courses.css index f058c415a..ff5ad3e7e 100644 --- a/public/react/src/modules/courses/css/Courses.css +++ b/public/react/src/modules/courses/css/Courses.css @@ -1,12 +1,17 @@ i.iconfont { cursor: pointer; } -.overflowHidden1{ +.overflowHidden1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; } +.overflowHidden2 { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} /* BASICS */ .editormd-preview ol li { diff --git a/public/react/src/modules/courses/exercise/question/shixunAnswer.js b/public/react/src/modules/courses/exercise/question/shixunAnswer.js index a1c4ff44b..5897ebd79 100644 --- a/public/react/src/modules/courses/exercise/question/shixunAnswer.js +++ b/public/react/src/modules/courses/exercise/question/shixunAnswer.js @@ -192,7 +192,14 @@ class shixunAnswer extends Component{ title: '任务名称', dataIndex: 'shixunName', key: 'shixunName', - className:"edu-txt-left with22" + className:"edu-txt-left with22 ", + render:(shixunName,item,index)=>{ + return( + 25 ? shixunName : ''} + >{shixunName} + ) + } }, { title: '评测次数', dataIndex: 'testCount',