Explorar o código

increasing font size on longer strings

Peter Holmberg %!s(int64=7) %!d(string=hai) anos
pai
achega
462bdb6d13
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {
     if (length > 12) {
-      return FONT_SCALE - length * 5 / 115;
+      return FONT_SCALE - length * 5 / 120;
     }
     return FONT_SCALE - length * 5 / 105;
   }