diff options
author | Maurizio De Santis <desantis.maurizio@gmail.com> | 2018-01-08 12:27:50 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-08 12:27:50 +0300 |
commit | f07727d92edab71444e28b12f4d8b6d9f8db690c (patch) | |
tree | ee3689b68341edf67a946c5675bf497f0bc736f2 /app/assets/javascripts/gfm_auto_complete.js | |
parent | 82e2d90b519e76fe6d73f791f610da1a425e6091 (diff) |
Fix slash commands dropdown description
Diffstat (limited to 'app/assets/javascripts/gfm_auto_complete.js')
-rw-r--r-- | app/assets/javascripts/gfm_auto_complete.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/gfm_auto_complete.js b/app/assets/javascripts/gfm_auto_complete.js index d918d80df8d..df20e1e9c88 100644 --- a/app/assets/javascripts/gfm_auto_complete.js +++ b/app/assets/javascripts/gfm_auto_complete.js @@ -57,12 +57,12 @@ class GfmAutoComplete { displayTpl(value) { if (GfmAutoComplete.isLoading(value)) return GfmAutoComplete.Loading.template; // eslint-disable-next-line no-template-curly-in-string - let tpl = '<li>/${name}'; + let tpl = '<li><span class="name">/${name}</span>'; if (value.aliases.length > 0) { - tpl += ' <small>(or /<%- aliases.join(", /") %>)</small>'; + tpl += ' <small class="aliases">(or /<%- aliases.join(", /") %>)</small>'; } if (value.params.length > 0) { - tpl += ' <small><%- params.join(" ") %></small>'; + tpl += ' <small class="params"><%- params.join(" ") %></small>'; } if (value.description !== '') { tpl += '<small class="description"><i><%- description %></i></small>'; |