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

@@ -187,7 +187,7 @@ const OccupanciesPage: React.FC = () => {
{ title: '退宿原因', dataIndex: 'checkOutReason', render: (v: any) => v || '-' },
{
title: '操作',
width: 200,
width: 220,
render: (_: any, record: any) =>
!record.checkOutDate ? (
<Space>
@@ -451,7 +451,7 @@ const OccupanciesPage: React.FC = () => {
dataSource={filteredData}
rowKey="id"
loading={loading}
scroll={{ x: 900 }}
scroll={{ x: 'max-content' }}
pagination={{ pageSize: 15, showTotal: (total) => `${total}` }}
rowSelection={rowSelection}
/>