mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
don't indent combo content when there is no icon for tag value
This commit is contained in:
@@ -494,13 +494,12 @@ export function uiFieldCombo(field, context) {
|
||||
value = tagValue(value);
|
||||
if (valueIcons[field.key]) {
|
||||
_container.selectAll('.tag-value-icon').remove();
|
||||
var iconSelector = _container.selectAll('.tag-value-icon')
|
||||
.data([value])
|
||||
.enter()
|
||||
.insert('div', 'input')
|
||||
.attr('class', 'tag-value-icon');
|
||||
if (valueIcons[field.key].indexOf(value) !== -1) {
|
||||
iconSelector
|
||||
_container.selectAll('.tag-value-icon')
|
||||
.data([value])
|
||||
.enter()
|
||||
.insert('div', 'input')
|
||||
.attr('class', 'tag-value-icon')
|
||||
.call(svgIcon('#iD-' + field.key.replace(/:/g, '_') + '-' + value.replace(/:/g, '_')));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user