From f70b22998585df8ddf89a76309551918acd904aa Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 30 Dec 2020 22:43:47 +0800 Subject: [PATCH] fix: sub table overflow --- packages/app/src/components/views/Field/index.tsx | 4 ++-- packages/app/src/components/views/Field/style.less | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/views/Field/index.tsx b/packages/app/src/components/views/Field/index.tsx index 82f6da1d6..b185938bb 100644 --- a/packages/app/src/components/views/Field/index.tsx +++ b/packages/app/src/components/views/Field/index.tsx @@ -178,8 +178,8 @@ export function SubTableField(props: any) { return null; } return ( -
- +
+
); } diff --git a/packages/app/src/components/views/Field/style.less b/packages/app/src/components/views/Field/style.less index 36113bc1b..e1d6f1a9c 100644 --- a/packages/app/src/components/views/Field/style.less +++ b/packages/app/src/components/views/Field/style.less @@ -13,3 +13,11 @@ text-align: right; } } + +.sub-table-field { + overflow: auto; + > .ant-table-wrapper { + width: 1px; + overflow: visible; + } +} \ No newline at end of file