diff --git a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
index b958faa5c..2c56b8b58 100644
--- a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
+++ b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
@@ -332,17 +332,17 @@ class Testpapersettinghomepage extends Component{
{this.props.isAdmin()===true?
:
}
@@ -370,7 +370,7 @@ class Testpapersettinghomepage extends Component{
padding-top: 10px;
padding-bottom: 8px;
}
- a:hover {
+ .exercisesafonts:hover {
color:#1A0B00 !important;
}
`}
diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js
index eab42d253..bccef3075 100644
--- a/public/react/src/modules/courses/poll/PollNew.js
+++ b/public/react/src/modules/courses/poll/PollNew.js
@@ -280,9 +280,13 @@ class PollNew extends Component {
questionnair: true,
left_banner_id:result.data.left_banner_id
})
- // console.log(this.state.polls_nametest)
- // console.log(this.state.polls_descriptiontest)
- // }
+ if( result.data.poll.polls_name){
+ if( result.data.poll.polls_name.length>0){
+ this.setState({
+ addonAfter: result.data.poll.polls_name.length,
+ })
+ }
+ }
}).catch((error) => {
console.log(error)
})
@@ -326,8 +330,13 @@ class PollNew extends Component {
polls_descriptiontest: result.data.poll.polls_description,
questionnair: true,
})
-
- // }
+ if( result.data.poll.polls_name){
+ if( result.data.poll.polls_name.length>0){
+ this.setState({
+ addonAfter: result.data.poll.polls_name.length,
+ })
+ }
+ }
}).catch((error) => {
console.log(error)
})
diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
index dd5a93534..dd694828a 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
@@ -1100,7 +1100,7 @@ class ShixunHomework extends Component{
{course_modules&&course_modules.main_category.map((item,key)=>{
return(
- datas&&datas.category_id===null?"": this.moveTos(item.main_category_id)} title={item.main_category_name}>{item.main_category_name}
+ datas&&datas.category_id===null?"": this.moveTos(item.main_category_id)} title={item.main_category_name.length>18?item.main_category_name:""}>{item.main_category_name}
)
})}
@@ -1109,10 +1109,10 @@ class ShixunHomework extends Component{
return (!this.state.dirSearchValue || item.category_name.indexOf(this.state.dirSearchValue) != -1)
}).map( (item,key) => {
if(datas&&datas.category_id!=null&&datas&&datas.category_id===item.category_id===false){
- return this.moveTos(item.category_id )} title={item.category_name}>{item.category_name}
+ return this.moveTos(item.category_id )} title={item.category_name.length>18?item.category_name:""}>{item.category_name}
}
if(datas&&datas.category_id===null){
- return this.moveTos(item.category_id )} title={item.category_name}>{item.category_name}
+ return this.moveTos(item.category_id )} title={item.category_name.length>18?item.category_name:""}>{item.category_name}
}
})}