From 24a53c38c68108c47af9f7685542fcb8378915bf Mon Sep 17 00:00:00 2001 From: Stephen Liu <750188453@qq.com> Date: Thu, 30 Jun 2022 16:19:38 +0800 Subject: [PATCH] fix(big-number): big number gets cut off on a Dashboard (#20488) --- .../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,