diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index 7a2d811c7..45bbb690a 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -104,32 +104,32 @@ class Listofworksstudentone extends Component { key: 'number', align: "center", className: 'font-14', - width: '100px', + width: '90px', render: (text, record) => ( - + {record.number === undefined ? -- : record.number === "" ? -- : record.number === "--" ? -- : {record.number} } @@ -187,31 +187,31 @@ class Listofworksstudentone extends Component { dataIndex: 'stduynumber', key: 'stduynumber', align: "center", - className: 'font-14 maxnamewidth145', - width: '145px', + className: 'font-14 maxnamewidth120', + width: '120px', render: (text, record) => ( - {record.stduynumber === undefined ? -- : record.stduynumber === null ? -- : record.stduynumber === "" ? -- : @@ -221,14 +221,12 @@ class Listofworksstudentone extends Component { style={{ color: '#000', textAlign: "center", - width: '145px', + width: '120px', }}>{ record.stduynumber } - } - ), }, diff --git a/public/react/src/modules/courses/shixunHomework/style.css b/public/react/src/modules/courses/shixunHomework/style.css index 657ebded0..3129b640e 100644 --- a/public/react/src/modules/courses/shixunHomework/style.css +++ b/public/react/src/modules/courses/shixunHomework/style.css @@ -73,6 +73,14 @@ white-space:nowrap; cursor: default; } + +.maxnamewidth120{ + max-width: 120px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + cursor: default; +} .maxnamewidth145{ max-width: 145px; overflow:hidden;