diff options
| author | Stephen Blott | 2016-04-22 16:55:02 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2016-04-22 16:55:04 +0100 | 
| commit | a7446f09538e0b0314611c9d847016a85f735644 (patch) | |
| tree | 91a43d4b5171e38ea0832d1012bfcde8532fa3c3 /background_scripts/main.coffee | |
| parent | 4c707140985ae03e3c523f2e6e4b6cb4c8465236 (diff) | |
| download | vimium-a7446f09538e0b0314611c9d847016a85f735644.tar.bz2 | |
Nicer styling of command names in help dialog.
The commands names (in the help dialog) look nicer in italics.  They
also format better that way.
Diffstat (limited to 'background_scripts/main.coffee')
| -rw-r--r-- | background_scripts/main.coffee | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index cb978db3..653b61e7 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -124,9 +124,8 @@ helpDialogHtmlForCommand = (html, isAdvanced, bindings, description, showCommand    html.push "<tr class='vimiumReset #{"advanced" if isAdvanced}'>"    if description      html.push "<td class='vimiumReset'>#{bindings}</td>" -    html.push "<td class='vimiumReset'></td><td class='vimiumReset vimiumHelpDescription'>", -      "#{description}#{if showCommandNames then ":" else ""}" -    html.push("<span class='vimiumReset commandName'>#{command}</span>") if showCommandNames +    html.push "<td class='vimiumReset'></td><td class='vimiumReset vimiumHelpDescription'>", description +    html.push("(<span class='vimiumReset commandName'>#{command}</span>)") if showCommandNames    else      html.push "<td class='vimiumReset' colspan='3' style='text-align: left;'>", bindings    html.push("</td></tr>") | 
