diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index f6e7c4532..4ff1580ac 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -85,9 +85,9 @@ function buildColumns(that, student_works) { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', - width: '98px', + width: '74px', margin: '0 auto' - }} title={text}> + }} title={text && text.length > 5 ? text : ''}> {/* */} {text} @@ -185,7 +185,7 @@ function buildColumns(that, student_works) { )}, }, { - width: 150, + width: 106, title: '更新时间', dataIndex: 'update_time', key: 'update_time', @@ -325,7 +325,7 @@ function buildColumns(that, student_works) { } if (isAdminOrStudent || that.props.work_public == true) { columns.push({ - width: 92, + width: 72, title: '操作', key: 'operation', dataIndex: 'operation', @@ -654,7 +654,7 @@ class CommonWorkList extends Component{ } .workListContent .ant-table-thead > tr > th, .workListContent .ant-table-tbody > tr > td { - padding: 10px 2px; + padding: 10px 1px; } `}