From e57793fab097f4cd6fbb50ad4633cf4270b237bc Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 5 Jan 2021 11:07:00 -0500 Subject: [PATCH] Use full width semicombo field for Via field (re: https://github.com/openstreetmap/id-tagging-schema/issues/104) --- modules/ui/fields/combo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/fields/combo.js b/modules/ui/fields/combo.js index f9eb600f9..349803617 100644 --- a/modules/ui/fields/combo.js +++ b/modules/ui/fields/combo.js @@ -329,9 +329,9 @@ export function uiFieldCombo(field, context) { var listClass = 'chiplist'; - // Use a separate line for each value in the Destinations field + // Use a separate line for each value in the Destinations and Via fields // to mimic highway exit signs - if (field.key === 'destination') { + if (field.key === 'destination' || field.key === 'via') { listClass += ' full-line-chips'; } @@ -601,7 +601,7 @@ export function uiFieldCombo(field, context) { var targetIndexOffsetTop = null; var draggedTagWidth = d3_select(this).node().offsetWidth; - if (field.key === 'destination') { // meaning tags are full width + if (field.key === 'destination' || field.key === 'via') { // meaning tags are full width _container.selectAll('.chip') .style('transform', function(d2, index2) { var node = d3_select(this).node();