فهرست منبع

minifix for spacing of question sign tooltips when html is minified

Torkel Ödegaard 11 سال پیش
والد
کامیت
a65c61442e
4فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 2 2
      src/app/directives/tip.js
  2. 1 1
      src/app/panels/graph/styleEditor.html
  3. 4 0
      src/css/less/grafana.less
  4. 1 1
      src/css/less/variables.dark.less

+ 2 - 2
src/app/directives/tip.js

@@ -11,10 +11,10 @@ function (angular, kbn) {
       return {
         restrict: 'E',
         link: function(scope, elem, attrs) {
-          var _t = '<i class="icon-'+(attrs.icon||'question-sign')+'" bs-tooltip="\''+
+          var _t = '<i class="grafana-tip icon-'+(attrs.icon||'question-sign')+'" bs-tooltip="\''+
             kbn.addslashes(elem.text())+'\'"></i>';
           elem.replaceWith($compile(angular.element(_t))(scope));
         }
       };
     });
-});
+});

+ 1 - 1
src/app/panels/graph/styleEditor.html

@@ -27,7 +27,7 @@
       <select class="input-mini" ng-model="panel.pointradius" ng-options="f for f in [1,2,3,4,5,6,7,8,9,10]" ng-change="render()"></select>
     </div>
     <div class="editor-option">
-      <label class="small">Null point mode <tip>Define how null values should be drawn</tip></label>
+      <label class="small">Null point mode<tip>Define how null values should be drawn</tip></label>
       <select class="input-medium" ng-model="panel.nullPointMode" ng-options="f for f in ['connected', 'null', 'null as zero']" ng-change="render()"></select>
     </div>
     <div class="editor-option">

+ 4 - 0
src/css/less/grafana.less

@@ -504,3 +504,7 @@ select.grafana-target-segment-input {
     margin-top: 5px;
   }
 }
+
+.grafana-tip {
+  padding-left: 5px;
+}

+ 1 - 1
src/css/less/variables.dark.less

@@ -35,7 +35,7 @@
 
 // Graphite Target Editor
 @grafanaTargetBorder:         @black;
-@grafanaTargetBackground:     @grayDark;
+@grafana-info-box grafanaTargetBackground:     @grayDark;
 @grafanaTargetColor:          #c8c8c8;
 @grafanaTargetColorHide:      darken(#c8c8c8, 25%);
 @grafanaTargetSegmentBorder:  #050505;