Skip to content

Commit

Permalink
fix(big-number): big number gets cut off on a Dashboard (#20488)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ committed Jun 30, 2022
1 parent 90d486a commit 24a53c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 24a53c3

Please sign in to comment.