mirror of
https://github.com/grafana/grafana.git
synced 2025-01-08 15:13:30 -06:00
fix(singlestat): fixes font size diffs for gauge
This commit is contained in:
parent
9316bcf307
commit
79ed99a940
@ -341,7 +341,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
value: {
|
||||
color: panel.colorValue ? getColorForValue(data, data.valueRounded) : null,
|
||||
formatter: function() { return getValueText(); },
|
||||
font: { size: getGaugeFontSize() }
|
||||
font: { size: getGaugeFontSize(), family: 'Helvetica Neue", Helvetica, Arial, sans-serif' }
|
||||
},
|
||||
show: true
|
||||
}
|
||||
@ -360,7 +360,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
function getGaugeFontSize() {
|
||||
if (panel.valueFontSize) {
|
||||
var num = parseInt(panel.valueFontSize.substring(0, panel.valueFontSize.length - 1));
|
||||
return 30 * (num / 100);
|
||||
return (30 * (num / 100)) + 15;
|
||||
} else {
|
||||
return 30;
|
||||
}
|
||||
|
@ -48,4 +48,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
#flotGagueValue0 {
|
||||
font-weight: bold; //please dont hurt me for this!
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user