Permalink
Browse files

Align colons in help dialog.

  • Loading branch information...
1 parent 5dc0439 commit c5f13bcba99ecd7449e79bbae5bf344bceed691f @stefanv stefanv committed Aug 20, 2011
@@ -311,3 +311,11 @@ div.text_cell_render {
.ui-widget-content { border: 0px; }
}
+.shortcut_key {
+ display: inline-block;
+ width: 10ex;
+ text-align: right;
+}
+
+.shortcut_descr {
+}
@@ -201,8 +201,8 @@ var IPython = (function (IPython) {
];
for (var i=0; i<shortcuts.length; i++) {
dialog.append($('<div>').
- append($('<span/>').addClass('shortcut_key').html(shortcuts[i].key+' : ')).
- append($('<span/>').html(shortcuts[i].help))
+ append($('<span/>').addClass('shortcut_key').html(shortcuts[i].key)).
+ append($('<span/>').addClass('shortcut_descr').html(' : ' + shortcuts[i].help))
);
};
dialog.dialog({title: 'Keyboard shortcuts'});

0 comments on commit c5f13bc

Please sign in to comment.