فهرست منبع

increasing font size on longer strings

Peter Holmberg 7 سال پیش
والد
کامیت
462bdb6d13
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;
   }