fix: add scroll.x='max-content' to 15 tables, widen narrow columns to prevent header wrapping

This commit is contained in:
2026-07-06 16:10:33 +08:00
parent 4020f79896
commit f4eac7b804
16 changed files with 30 additions and 28 deletions

View File

@@ -92,7 +92,7 @@ const TeachersPage: React.FC = () => {
};
const columns = [
{ title: '姓名', dataIndex: 'name', key: 'name', width: 100 },
{ title: '姓名', dataIndex: 'name', key: 'name', width: 120 },
{ title: '用户名', dataIndex: 'username', key: 'username', width: 130 },
{
title: '角色',
@@ -135,7 +135,7 @@ const TeachersPage: React.FC = () => {
title: '状态',
dataIndex: 'isActive',
key: 'status',
width: 80,
width: 90,
render: (v: boolean) => <Tag color={v ? 'green' : 'red'}>{v ? '在职' : '停用'}</Tag>,
},
{
@@ -148,7 +148,7 @@ const TeachersPage: React.FC = () => {
{
title: '操作',
key: 'actions',
width: 80,
width: 100,
render: (_: unknown, r: TeacherRow) => (
<Button
size="small"