From 6404250dccaff805fccef1fbe5ffcd3fb78c0109 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 2 Jan 2018 18:08:39 +0800 Subject: [PATCH] remove extra scroll bar, close #532 --- src/components/Charts/ChartCard/index.js | 2 +- src/components/Charts/ChartCard/index.less | 4 ++++ src/components/Charts/index.less | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Charts/ChartCard/index.js b/src/components/Charts/ChartCard/index.js index a4726827..db2c4623 100644 --- a/src/components/Charts/ChartCard/index.js +++ b/src/components/Charts/ChartCard/index.js @@ -52,7 +52,7 @@ const ChartCard = ({ bodyStyle={{ padding: '20px 24px 8px 24px' }} {...rest} > - {{content}} + {{content}} ); }; diff --git a/src/components/Charts/ChartCard/index.less b/src/components/Charts/ChartCard/index.less index bdc573b1..02a1d7ec 100644 --- a/src/components/Charts/ChartCard/index.less +++ b/src/components/Charts/ChartCard/index.less @@ -72,3 +72,7 @@ margin-top: 20px; } } + +.spin :global(.ant-spin-container) { + overflow: visible; +} diff --git a/src/components/Charts/index.less b/src/components/Charts/index.less index 52f97c4c..43cfc8bf 100644 --- a/src/components/Charts/index.less +++ b/src/components/Charts/index.less @@ -5,7 +5,7 @@ position: absolute; bottom: -34px; width: 100%; - & > div { + > div { margin: 0 -5px; overflow: hidden; } -- GitLab