Ver Fonte

Panel-menu: small tweeks to css for cursor types

Torkel Ödegaard há 11 anos atrás
pai
commit
7a7629acf7

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

@@ -8,7 +8,7 @@
           <span class="small" ng-show="datapointsOutside">Datapoints outside time range <tip>Can be caused by timezone mismatch between browser and graphite server</tip></span>
           <span class="small" ng-show="datapointsOutside">Datapoints outside time range <tip>Can be caused by timezone mismatch between browser and graphite server</tip></span>
         </div>
         </div>
 
 
-        <div grafana-graph class="pointer histogram-chart">
+        <div grafana-graph class="histogram-chart">
         </div>
         </div>
 
 
       </div>
       </div>

+ 1 - 0
src/app/panels/text/module.js

@@ -20,6 +20,7 @@ function (angular, app, _, require) {
 
 
     // Set and populate defaults
     // Set and populate defaults
     var _d = {
     var _d = {
+      title: 'default title',
       mode    : "markdown", // 'html', 'markdown', 'text'
       mode    : "markdown", // 'html', 'markdown', 'text'
       content : "",
       content : "",
       style: {},
       style: {},

+ 1 - 1
src/css/less/graph.less

@@ -1,5 +1,6 @@
 .graph-canvas-wrapper {
 .graph-canvas-wrapper {
   position: relative;
   position: relative;
+  cursor: crosshair;
 }
 }
 
 
 .graph-legend {
 .graph-legend {
@@ -180,5 +181,4 @@
     float: right;
     float: right;
     padding-left: 10px;
     padding-left: 10px;
   }
   }
-
 }
 }

+ 6 - 1
src/css/less/panel.less

@@ -17,7 +17,7 @@
 
 
 .panel-title-container {
 .panel-title-container {
   min-height: 5px;
   min-height: 5px;
-  cursor: pointer;
+  cursor: context-menu;
 }
 }
 
 
 .panel-title {
 .panel-title {
@@ -25,6 +25,7 @@
   font-weight: bold;
   font-weight: bold;
   position: relative;
   position: relative;
   font-size: 0.9em;
   font-size: 0.9em;
+  cursor: context-menu;
 }
 }
 
 
 .panel-loading {
 .panel-loading {
@@ -77,6 +78,10 @@
     }
     }
   }
   }
 
 
+  .icon-move {
+    cursor: move;
+  }
+
   .panel-menu-link, .panel-menu-icon {
   .panel-menu-link, .panel-menu-icon {
     padding: 5px 10px;
     padding: 5px 10px;
   }
   }