From 2430321f2e59d400e902b37dff07834c188c67dd Mon Sep 17 00:00:00 2001 From: stephenLYZ <750188453@qq.com> Date: Fri, 24 Jun 2022 17:49:36 +0800 Subject: [PATCH] fix(big-number): big number gets cut off on a Dashboard --- .../plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx index a77dc541733c1..d14cc7dcefa2f 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx +++ b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx @@ -152,7 +152,7 @@ class BigNumberVis extends React.PureComponent { document.body.append(container); const fontSize = computeMaxFontSize({ text, - maxWidth: width, + maxWidth: width - 8, // Decrease 8px for more precise font size maxHeight, className: 'header-line', container,