mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Make "Multiple Values" placeholder italic
This commit is contained in:
@@ -2359,6 +2359,9 @@ button.raw-tag-option svg.icon {
|
||||
[dir='rtl'] .tag-row input.value {
|
||||
border-left: 1px solid #ccc;
|
||||
}
|
||||
.tag-row input.value.conflicting::placeholder {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.tag-row:first-child input.key {
|
||||
border-top: 1px solid #ccc;
|
||||
|
||||
@@ -285,6 +285,9 @@ export function uiRawTagEditor(context) {
|
||||
.attr('title', function(d) {
|
||||
return typeof d.value === 'string' ? d.value : Array.from(_keyValues[d.key]).sort().join('; ');
|
||||
})
|
||||
.classed('conflicting', function(d) {
|
||||
return typeof d.value !== 'string';
|
||||
})
|
||||
.attr('placeholder', function(d) {
|
||||
return typeof d.value === 'string' ? null : t('inspector.multiple_values');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user