mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
- Fixes an issue with cut off text within aggregation type dropdowns in the multi-metric and population wizard. - Fixes the style of the dropdown to be consistent across browsers. - Fixes 1px vertical offset between dropdown and trash-icon.
This commit is contained in:
parent
8a5ff4f17a
commit
3996d25e93
4 changed files with 64 additions and 17 deletions
|
@ -21,13 +21,13 @@
|
|||
{{field.name}}
|
||||
</span>
|
||||
</label>
|
||||
<div>
|
||||
<div class="agg-type-select-wrapper">
|
||||
<select
|
||||
ng-model="field.agg.type"
|
||||
ng-options="agg as agg.title for agg in ui.aggTypeOptions | filterAggTypes:field"
|
||||
ng-change="formChange()"
|
||||
ng-disabled="formConfig.fields[field.id] === undefined || jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED"
|
||||
class="form-control agg-type">
|
||||
class="form-control agg-type-select">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -33,10 +33,31 @@
|
|||
}
|
||||
}
|
||||
|
||||
.agg-type {
|
||||
float: right;
|
||||
width: 120px;
|
||||
flex-grow: 0;
|
||||
.agg-type-select-wrapper {
|
||||
.agg-type-select {
|
||||
float: right;
|
||||
width: 130px;
|
||||
flex-grow: 0;
|
||||
padding: 5px 10px;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
margin-left: 2px;
|
||||
vertical-align: middle;
|
||||
border-top: 4px dashed;
|
||||
border-top: 4px solid #000;
|
||||
border-right: 4px solid transparent;
|
||||
border-left: 4px solid transparent;
|
||||
right: 10px;
|
||||
top: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.field-row:first-child {
|
||||
|
|
|
@ -40,13 +40,15 @@
|
|||
</div>
|
||||
<div>
|
||||
<div class="agg-type">
|
||||
<select
|
||||
class="form-control"
|
||||
ng-model="field.agg.type"
|
||||
ng-options="agg as agg.title for agg in ui.aggTypeOptions | filterAggTypes:field"
|
||||
ng-change="formChange()"
|
||||
ng-disabled="formConfig.fields[$index] === undefined || jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED">
|
||||
</select>
|
||||
<div class="agg-type-select-wrapper">
|
||||
<select
|
||||
class="form-control agg-type-select"
|
||||
ng-model="field.agg.type"
|
||||
ng-options="agg as agg.title for agg in ui.aggTypeOptions | filterAggTypes:field"
|
||||
ng-change="formChange()"
|
||||
ng-disabled="formConfig.fields[$index] === undefined || jobState === JOB_STATE.RUNNING || jobState === JOB_STATE.STOPPING || jobState === JOB_STATE.FINISHED">
|
||||
</select>
|
||||
</div>
|
||||
<button
|
||||
aria-label="Remove Detector"
|
||||
ng-click="removeField($index, field)"
|
||||
|
|
|
@ -33,12 +33,37 @@
|
|||
|
||||
.agg-type {
|
||||
float: right;
|
||||
width: 152px;
|
||||
width: 162px;
|
||||
flex-grow: 0;
|
||||
white-space: nowrap;
|
||||
select {
|
||||
width: 120px;
|
||||
|
||||
.agg-type-select-wrapper {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
|
||||
.agg-type-select {
|
||||
width: 130px;
|
||||
flex-grow: 0;
|
||||
padding: 5px 10px;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
margin-left: 2px;
|
||||
vertical-align: middle;
|
||||
border-top: 4px dashed;
|
||||
border-top: 4px solid #000;
|
||||
border-right: 4px solid transparent;
|
||||
border-left: 4px solid transparent;
|
||||
right: 43px;
|
||||
top: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.remove-button {
|
||||
|
@ -64,4 +89,3 @@
|
|||
margin: 6px 2px 0px 0px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue