Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Align colons in help dialog.

  • Loading branch information...
commit c5f13bcba99ecd7449e79bbae5bf344bceed691f 1 parent 5dc0439
Stefan van der Walt authored
8  IPython/frontend/html/notebook/static/css/notebook.css
@@ -311,3 +311,11 @@ div.text_cell_render {
311 311
     .ui-widget-content { border: 0px; }
312 312
 }
313 313
 
  314
+.shortcut_key {
  315
+    display: inline-block;
  316
+    width: 10ex;
  317
+    text-align: right;
  318
+}
  319
+
  320
+.shortcut_descr {
  321
+}
4  IPython/frontend/html/notebook/static/js/notebook.js
@@ -201,8 +201,8 @@ var IPython = (function (IPython) {
201 201
         ];
202 202
         for (var i=0; i<shortcuts.length; i++) {
203 203
             dialog.append($('<div>').
204  
-                append($('<span/>').addClass('shortcut_key').html(shortcuts[i].key+' : ')).
205  
-                append($('<span/>').html(shortcuts[i].help))
  204
+                append($('<span/>').addClass('shortcut_key').html(shortcuts[i].key)).
  205
+                append($('<span/>').addClass('shortcut_descr').html(' : ' + shortcuts[i].help))
206 206
             );
207 207
         };
208 208
         dialog.dialog({title: 'Keyboard shortcuts'});

0 notes on commit c5f13bc

Please sign in to comment.
Something went wrong with that request. Please try again.