Explorar el Código

increasing font size on longer strings

Peter Holmberg hace 7 años
padre
commit
462bdb6d13
Se han modificado 1 ficheros con 1 adiciones y 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;
   }