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
(cherry picked from commit 24a53c3)
  • Loading branch information
stephenLYZ authored and michael-s-molina committed Jul 6, 2022
1 parent 9a26a21 commit 4b2397f
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 4b2397f

Please sign in to comment.