fix(big-number): big number gets cut off on a Dashboard (#20488)

(cherry picked from commit 24a53c38c6)
This commit is contained in:
Stephen Liu
2022-06-30 16:19:38 +08:00
committed by Michael S. Molina
parent 9a26a211d4
commit 4b2397f0c7

View File

@@ -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,