From a364c52f473d2f279368f905f251c9e46b94325b Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Mon, 20 Jan 2020 13:55:38 -0500 Subject: [PATCH] Make "Multiple Values" placeholder italic --- css/80_app.css | 3 +++ modules/ui/raw_tag_editor.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/css/80_app.css b/css/80_app.css index afb79aa9a..25e038d98 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -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; diff --git a/modules/ui/raw_tag_editor.js b/modules/ui/raw_tag_editor.js index abbef1108..b8aa43ea7 100644 --- a/modules/ui/raw_tag_editor.js +++ b/modules/ui/raw_tag_editor.js @@ -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'); })