This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 24a53c38c6 fix(big-number): big number gets cut off on a Dashboard
(#20488)
24a53c38c6 is described below
commit 24a53c38c68108c47af9f7685542fcb8378915bf
Author: Stephen Liu <[email protected]>
AuthorDate: Thu Jun 30 16:19:38 2022 +0800
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 a77dc54173..d14cc7dcef 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<BigNumberVisProps> {
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,