Skip to content

Commit 2908c6a

Browse files
committed
fix(metricsegment): added min width for inputs for metric segment and value select components
1 parent fe4a0a9 commit 2908c6a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

public/app/core/directives/metric_segment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function (_, $, coreModule) {
136136

137137
$button.click(function() {
138138
options = null;
139-
$input.css('width', ($button.width() + 16) + 'px');
139+
$input.css('width', (Math.max($button.width(), 80) + 16) + 'px');
140140

141141
$button.hide();
142142
$input.show();

public/app/core/directives/value_select_dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function (angular, _, coreModule) {
236236
var inputEl = elem.find('input');
237237

238238
function openDropdown() {
239-
inputEl.css('width', Math.max(linkEl.width(), 30) + 'px');
239+
inputEl.css('width', Math.max(linkEl.width(), 80) + 'px');
240240

241241
inputEl.show();
242242
linkEl.hide();

public/app/partials/valueSelectDropdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<i class="fa fa-caret-down"></i>
1111
</a>
1212

13-
<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>
13+
<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>
1414

1515
<div class="variable-value-dropdown" ng-if="vm.dropdownVisible" ng-class="{'multi': vm.variable.multi, 'single': !vm.variable.multi}">
1616
<div class="variable-options-wrapper">

0 commit comments

Comments
 (0)