Skip to content

Commit

Permalink
fix(big-number): big number gets cut off on a Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ committed Jun 24, 2022
1 parent 44f0b51 commit 2430321
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 2430321

Please sign in to comment.