From 60f3e775d049a19da2640d91f8af15888eef408d Mon Sep 17 00:00:00 2001 From: Tom Xu Date: Sun, 26 Apr 2020 10:42:05 +0800 Subject: [PATCH] style: fix table size nest table margin (#23602) --- components/table/style/size.less | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/table/style/size.less b/components/table/style/size.less index de22c71cd2..4c198f114c 100644 --- a/components/table/style/size.less +++ b/components/table/style/size.less @@ -32,6 +32,16 @@ .@{table-prefix-cls}-expanded-row-fixed { margin: -@padding-vertical -@padding-horizontal; } + + .@{table-prefix-cls}-tbody { + // ========================= Nest Table =========================== + .@{table-prefix-cls}-wrapper:only-child { + .@{table-prefix-cls} { + margin: -@padding-vertical -@padding-horizontal -@padding-vertical (@padding-horizontal + + ceil(@font-size-sm * 1.4)); + } + } + } } }