increasing font size on longer strings
This commit is contained in:
@@ -115,7 +115,7 @@ export class Gauge extends PureComponent<Props> {
|
||||
|
||||
getFontScale(length: number): number {
|
||||
if (length > 12) {
|
||||
return FONT_SCALE - length * 5 / 115;
|
||||
return FONT_SCALE - length * 5 / 120;
|
||||
}
|
||||
return FONT_SCALE - length * 5 / 105;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user