Permalink
Browse files

Merge pull request #713 from stefanv/htmlnotebook_help_dialog

Align colons in html notebook help dialog
  • Loading branch information...
2 parents 5dc0439 + c5f13bc commit 44087428b596ca73d734b69a84a86492fe90c61c @ellisonbg ellisonbg 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 4408742

Please sign in to comment.