diff --git a/packages/core/client/src/schema-component/antd/grid/Grid.tsx b/packages/core/client/src/schema-component/antd/grid/Grid.tsx index ba8cce62c..19472c272 100644 --- a/packages/core/client/src/schema-component/antd/grid/Grid.tsx +++ b/packages/core/client/src/schema-component/antd/grid/Grid.tsx @@ -358,16 +358,7 @@ export const Grid: any = observer( return ( -
+
diff --git a/packages/core/client/src/schema-component/antd/list/List.tsx b/packages/core/client/src/schema-component/antd/list/List.tsx index 55976c78a..341df1fa4 100644 --- a/packages/core/client/src/schema-component/antd/list/List.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.tsx @@ -75,46 +75,47 @@ const InternalList = (props) => { componentCls, hashId, css` - .ant-spin-nested-loading { + .nb-list-container { height: ${height ? height + 'px' : '100%'}; - overflow-y: ${height ? 'auto' : 'null'}; - .ant-spin-container { - width: 100%; - overflow-x: clip; - padding-right: ${token.paddingSM + 'px'}; - } + overflow-y: auto; + margin-left: -${token.marginLG}px; + margin-right: -${token.marginLG}px; + padding-left: ${token.marginLG}px; + padding-right: ${token.marginLG}px; } `, )} > - - {field.value?.length - ? field.value.map((item, index) => { - return ( - - ); - }) - : null} - +
+ + {field.value?.length + ? field.value.map((item, index) => { + return ( + + ); + }) + : null} + +
,