mirror of
https://github.com/apache/superset.git
synced 2026-05-10 10:25:51 +00:00
fix(big-number): big number gets cut off on a Dashboard (#20488)
(cherry picked from commit 24a53c38c6)
This commit is contained in:
committed by
Michael S. Molina
parent
9a26a211d4
commit
4b2397f0c7
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user