mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Updated variable dropdown
This commit is contained in:
parent
cb63344394
commit
8cfe89eaf9
@ -30,11 +30,9 @@ function (angular, app, _) {
|
|||||||
|
|
||||||
vm.selectedValues = _.filter(vm.options, {selected: true});
|
vm.selectedValues = _.filter(vm.options, {selected: true});
|
||||||
|
|
||||||
if (!vm.tags) {
|
vm.tags = _.map(vm.variable.tags, function(value) {
|
||||||
vm.tags = _.map(vm.variable.tags, function(value) {
|
return { text: value, selected: false };
|
||||||
return { text: value, selected: false };
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
vm.search = {query: '', options: vm.options};
|
vm.search = {query: '', options: vm.options};
|
||||||
vm.dropdownVisible = true;
|
vm.dropdownVisible = true;
|
||||||
@ -225,7 +223,7 @@ function (angular, app, _) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
angular
|
angular
|
||||||
.module('grafana.directives')
|
.module('grafana.directives')
|
||||||
.directive('variableValueSelect', function($compile, $window, $timeout) {
|
.directive('variableValueSelect', function($compile, $window, $timeout) {
|
||||||
|
|
||||||
|
@ -55,14 +55,14 @@
|
|||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
min-height: 150px;
|
min-height: 150px;
|
||||||
background-color: @dropdownBackground;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
box-shadow: 0px 0px 55px 0px black;
|
background-color: @dropdownBackground;
|
||||||
border: 1px solid @grafanaTargetFuncBackground;
|
box-shadow: 0 0 25px 0 rgba(0,0,0,0.4);
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
font-size: @baseFontSize;
|
font-size: @baseFontSize;
|
||||||
border-radius: 3px 3px 0 0;
|
border-radius: 3px 3px 0 0;
|
||||||
|
border: 1px solid @grafanaTargetFuncBackground;
|
||||||
|
|
||||||
&.multi {
|
&.multi {
|
||||||
.selected {
|
.selected {
|
||||||
|
Loading…
Reference in New Issue
Block a user