mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 17:20:30 +02:00
Removed extra padding in comboboxes when the caret is hidden
This commit is contained in:
@@ -1420,6 +1420,15 @@ img.tag-reference-wiki-image {
|
||||
.form-field-input-combo > input:only-of-type {
|
||||
border-radius: 0 0 4px 4px;
|
||||
}
|
||||
.form-field-input-combo.empty-combobox input,
|
||||
.form-field-input-multicombo .empty-combobox input {
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.form-field-input-combo.empty-combobox .combobox-caret,
|
||||
.form-field-input-multicombo .empty-combobox .combobox-caret {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.form-field-input-multicombo ul.chiplist {
|
||||
padding: 5px 7px 5px 7px;
|
||||
|
||||
@@ -191,14 +191,8 @@ export function uiFieldCombo(field, context) {
|
||||
});
|
||||
}
|
||||
|
||||
if (data.length === 0) {
|
||||
// hide the caret if there are no suggestions
|
||||
container.select('.combobox-caret')
|
||||
.style('display', 'none');
|
||||
} else {
|
||||
container.select('.combobox-caret')
|
||||
.style('display', null);
|
||||
}
|
||||
// hide the caret if there are no suggestions
|
||||
container.classed('empty-combobox', data.length === 0);
|
||||
|
||||
_comboData = _map(data, function(d) {
|
||||
var k = d.value;
|
||||
|
||||
Reference in New Issue
Block a user