Commit 2908c6a8 by Torkel Ödegaard

fix(metricsegment): added min width for inputs for metric segment and value select components

parent fe4a0a98
...@@ -136,7 +136,7 @@ function (_, $, coreModule) { ...@@ -136,7 +136,7 @@ function (_, $, coreModule) {
$button.click(function() { $button.click(function() {
options = null; options = null;
$input.css('width', ($button.width() + 16) + 'px'); $input.css('width', (Math.max($button.width(), 80) + 16) + 'px');
$button.hide(); $button.hide();
$input.show(); $input.show();
......
...@@ -236,7 +236,7 @@ function (angular, _, coreModule) { ...@@ -236,7 +236,7 @@ function (angular, _, coreModule) {
var inputEl = elem.find('input'); var inputEl = elem.find('input');
function openDropdown() { function openDropdown() {
inputEl.css('width', Math.max(linkEl.width(), 30) + 'px'); inputEl.css('width', Math.max(linkEl.width(), 80) + 'px');
inputEl.show(); inputEl.show();
linkEl.hide(); linkEl.hide();
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<i class="fa fa-caret-down"></i> <i class="fa fa-caret-down"></i>
</a> </a>
<input type="text" class="hidden-input input-small gf-form-input" style="display: none" ng-keydown="vm.keyDown($event)" ng-model="vm.search.query" ng-change="vm.queryChanged()" ></input> <input type="text" class="gf-form-input" style="display: none" ng-keydown="vm.keyDown($event)" ng-model="vm.search.query" ng-change="vm.queryChanged()" ></input>
<div class="variable-value-dropdown" ng-if="vm.dropdownVisible" ng-class="{'multi': vm.variable.multi, 'single': !vm.variable.multi}"> <div class="variable-value-dropdown" ng-if="vm.dropdownVisible" ng-class="{'multi': vm.variable.multi, 'single': !vm.variable.multi}">
<div class="variable-options-wrapper"> <div class="variable-options-wrapper">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment