mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
@@ -95,7 +95,9 @@ export function uiEntityEditor(context) {
|
||||
.attr('class', 'preset-list-button preset-reset')
|
||||
.call(tooltip().title(t('inspector.back_tooltip')).placement('bottom'))
|
||||
.append('div')
|
||||
.attr('class', 'label');
|
||||
.attr('class', 'label')
|
||||
.append('div')
|
||||
.attr('class', 'label-inner');
|
||||
|
||||
enter
|
||||
.append('div')
|
||||
@@ -142,8 +144,20 @@ export function uiEntityEditor(context) {
|
||||
.preset(_activePreset)
|
||||
);
|
||||
|
||||
body.select('.preset-list-item .label')
|
||||
.text(_activePreset.name());
|
||||
|
||||
var label = body.select('.label-inner');
|
||||
var nameparts = label.selectAll('.namepart')
|
||||
.data(_activePreset.name().split(' - '), function(d) { return d; });
|
||||
|
||||
nameparts.exit()
|
||||
.remove();
|
||||
|
||||
nameparts
|
||||
.enter()
|
||||
.append('div')
|
||||
.attr('class', 'namepart')
|
||||
.text(function(d) { return d; });
|
||||
|
||||
|
||||
body.select('.preset-editor')
|
||||
.call(presetEditor
|
||||
|
||||
Reference in New Issue
Block a user