increasing font size on longer strings

This commit is contained in:
Peter Holmberg 2019-01-29 11:01:35 +01:00
parent 4b0df606d5
commit 462bdb6d13

View File

@ -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;
}