فهرست منبع

feat(graphs): align forms for line mode checkbox

bergquist 9 سال پیش
والد
کامیت
3d366c2a4c
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 1 0
      CHANGELOG.md
  2. 4 3
      public/app/plugins/panel/graph/tab_axes.html

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@
 * **Remove query**: Fixed issue with removing query for data sources without collapsable query editors, fixes [#4856](https://github.com/grafana/grafana/issues/4856)
 * **Graphite PNG*: Fixed issue graphite png rendering option, fixes [#4864](https://github.com/grafana/grafana/issues/4864)
 * **InfluxDB**: Fixed issue missing plus group by iconn, fixes [#4862](https://github.com/grafana/grafana/issues/4862)
+* **Graph**: Fixes missing line mode for thresholds, fixes [#4902](https://github.com/grafana/grafana/pull/4902)
 
 ### Enhancements
 * **InfluxDB**: Added new functions moving_average and difference to query editor, closes [#4698](https://github.com/grafana/grafana/issues/4698)

+ 4 - 3
public/app/plugins/panel/graph/tab_axes.html

@@ -46,7 +46,7 @@
     <h5 class="section-heading">Thresholds</h5>
     <div class="gf-form-inline">
       <div class="gf-form">
-        <label class="gf-form-label width-5">Level 1</label>
+        <label class="gf-form-label width-6">Level 1</label>
         <input type="number" class="gf-form-input max-width-5" ng-model="ctrl.panel.grid.threshold1" ng-change="ctrl.render()" ng-model-onblur>
       </div>
       <div class="gf-form">
@@ -58,7 +58,7 @@
     </div>
     <div class="gf-form-inline">
       <div class="gf-form">
-        <label class="gf-form-label width-5">Level 2</label>
+        <label class="gf-form-label width-6">Level 2</label>
         <input type="number" class="gf-form-input max-width-5" ng-model="ctrl.panel.grid.threshold2" ng-change="ctrl.render()" ng-model-onblur>
       </div>
       <div class="gf-form">
@@ -68,6 +68,7 @@
         </div>
       </div>
     </div>
-    <gf-form-switch class="gf-form" label="Line Mode" label-class="width-10" checked="ctrl.panel.grid.thresholdLine" on-change="ctrl.render()"></gf-form-switch>
+
+    <gf-form-switch class="gf-form" label="Line Mode" label-class="width-6" checked="ctrl.panel.grid.thresholdLine" on-change="ctrl.render()"></gf-form-switch>
   </div>
 </div>