Minor css changes to graph panel & full edito mode

This commit is contained in:
Torkel Ödegaard
2015-02-01 19:59:53 +01:00
parent 56aa8ae6e0
commit cefdd86634
4 changed files with 12 additions and 15 deletions
+1 -10
View File
@@ -37,19 +37,11 @@ function (angular, $, config) {
var getter = $parse(attr.type), panelType = getter($scope); var getter = $parse(attr.type), panelType = getter($scope);
var newScope = $scope.$new(); var newScope = $scope.$new();
$scope.kbnJqUiDraggableOptions = {
revert: 'invalid',
helper: function() {
return $('<div style="width:200px;height:100px;background: rgba(100,100,100,0.50);"/>');
},
placeholder: 'keep'
};
// compile the module and uncloack. We're done // compile the module and uncloack. We're done
function loadModule($module) { function loadModule($module) {
$module.appendTo(elem); $module.appendTo(elem);
elem.wrap(container); elem.wrap(container);
/* jshint indent:false */
$compile(elem.contents())(newScope); $compile(elem.contents())(newScope);
elem.removeClass("ng-cloak"); elem.removeClass("ng-cloak");
@@ -81,7 +73,6 @@ function (angular, $, config) {
$module.first().find('.panel-header').nextAll().wrapAll(content); $module.first().find('.panel-header').nextAll().wrapAll(content);
loadModule($module); loadModule($module);
}); });
} }
}; };
}); });
+1 -1
View File
@@ -24,7 +24,7 @@
<div class="clearfix"></div> <div class="clearfix"></div>
<div class="gf-box" ng-if="editMode"> <div class="gf-box gf-box-full-edit" ng-if="editMode">
<div class="gf-box-header"> <div class="gf-box-header">
<div class="gf-box-title"> <div class="gf-box-title">
<i class="fa fa-bar-chart"></i> <i class="fa fa-bar-chart"></i>
+4
View File
@@ -5,6 +5,10 @@
border: 1px solid @grafanaTargetFuncBackground; border: 1px solid @grafanaTargetFuncBackground;
} }
.gf-box-full-edit {
margin: 30px 0 0 0;
}
.gf-box-header-close-btn { .gf-box-header-close-btn {
float: right; float: right;
padding: 0; padding: 0;
+6 -4
View File
@@ -88,11 +88,11 @@
position: fixed; position: fixed;
left: 0px; left: 0px;
right: 0px; right: 0px;
top: 51px; top: 55px;
height: 100%; height: 100%;
padding: 0 10px; padding: 0;
background: @grafanaPanelBackground; background: @grafanaPanelBackground;
overflow-y: scroll; overflow-y: auto;
height: 100%; height: 100%;
.panel-content { .panel-content {
@@ -102,10 +102,12 @@
.dropdown-menu { .dropdown-menu {
margin-bottom: 70px; margin-bottom: 70px;
} }
.panel-menu { .panel-menu {
top: 0px; top: 0px;
} }
.panel-title-container {
padding: 8px;
}
} }
.panel-menu { .panel-menu {