Browse Source

increasing font size on longer strings

Peter Holmberg 7 years ago
parent
commit
462bdb6d13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/grafana-ui/src/components/Gauge/Gauge.tsx

+ 1 - 1
packages/grafana-ui/src/components/Gauge/Gauge.tsx

@@ -115,7 +115,7 @@ export class Gauge extends PureComponent<Props> {
 
 
   getFontScale(length: number): number {
   getFontScale(length: number): number {
     if (length > 12) {
     if (length > 12) {
-      return FONT_SCALE - length * 5 / 115;
+      return FONT_SCALE - length * 5 / 120;
     }
     }
     return FONT_SCALE - length * 5 / 105;
     return FONT_SCALE - length * 5 / 105;
   }
   }