diff --git a/packages/core/client/src/collection-manager/Configuration/CollectionFields.tsx b/packages/core/client/src/collection-manager/Configuration/CollectionFields.tsx
index a8ceb5bc4..4c8274c69 100644
--- a/packages/core/client/src/collection-manager/Configuration/CollectionFields.tsx
+++ b/packages/core/client/src/collection-manager/Configuration/CollectionFields.tsx
@@ -24,11 +24,10 @@ import { OverridingCollectionField } from './OverridingCollectionField';
import { SyncFieldsAction } from './SyncFieldsAction';
import { ViewCollectionField } from './ViewInheritedField';
import { collection } from './schemas/collectionFields';
-const CELL_WIDTH = 200;
const indentStyle = css`
.ant-table {
- margin-left: -7px !important;
+ margin-left: -16px !important;
}
`;
const rowStyle = css`
@@ -36,6 +35,25 @@ const rowStyle = css`
background-color: white;
}
`;
+const tableContainer = css`
+ tr {
+ display: flex;
+ }
+ td,
+ th {
+ flex: 2;
+ width: 0;
+ &:last-child {
+ flex: 1;
+ }
+ }
+ .ant-table-selection-column,
+ .ant-table-row-expand-icon-cell {
+ flex-basis: 50px !important;
+ min-width: 50px;
+ flex: 0;
+ }
+`;
const titlePrompt = 'Default title for each record';
// 只有下面类型的字段才可以设置为标题字段
@@ -67,18 +85,15 @@ const CurrentFields = (props) => {
{
dataIndex: 'name',
title: t('Field name'),
- width: CELL_WIDTH + 20,
},
{
dataIndex: 'interface',
title: t('Field interface'),
- width: CELL_WIDTH,
render: (value) =>