StatPanel: minor height tweak (#21663)

pull/21681/head
Torkel Ödegaard 5 years ago committed by GitHub
parent 814020c05c
commit a734cd3640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx

@ -363,8 +363,9 @@ export class StackedWithChartLayout extends BigValueLayout {
// make title fontsize it's a bit smaller than valueFontSize
this.titleFontSize = Math.min(this.valueFontSize * 0.7, this.titleFontSize);
// make chart take up onused space
this.chartHeight = height - this.titleFontSize * LINE_HEIGHT - this.valueFontSize * LINE_HEIGHT + height * 0.05;
this.chartHeight = height - this.titleFontSize * LINE_HEIGHT - this.valueFontSize * LINE_HEIGHT;
}
getValueAndTitleContainerStyles() {

Loading…
Cancel
Save