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

@@ -221,9 +221,9 @@ const StudentsPage: React.FC = () => {
};
const columns = [
{ title: 'ID', dataIndex: 'id', width: 60 },
{ title: 'ID', dataIndex: 'id', width: 70 },
{ title: '姓名', dataIndex: 'name', ellipsis: true },
{ title: '性别', dataIndex: 'gender', width: 60 },
{ title: '性别', dataIndex: 'gender', width: 70 },
{
title: '电话',
dataIndex: 'phone',
@@ -265,7 +265,7 @@ const StudentsPage: React.FC = () => {
);
},
},
{ title: '民族', dataIndex: 'ethnicity', width: 80 },
{ title: '民族', dataIndex: 'ethnicity', width: 90 },
{ title: '紧急联系人', dataIndex: 'emergencyContact', ellipsis: true },
{ title: '紧急联系人电话', dataIndex: 'emergencyPhone', ellipsis: true },
{