Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #713 from stefanv/htmlnotebook_help_dialog

Align colons in html notebook help dialog
  • Loading branch information...
commit 44087428b596ca73d734b69a84a86492fe90c61c 2 parents 5dc0439 + c5f13bc
@ellisonbg ellisonbg authored
View
8 IPython/frontend/html/notebook/static/css/notebook.css
@@ -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 {
+}
View
4 IPython/frontend/html/notebook/static/js/notebook.js
@@ -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'});
Please sign in to comment.
Something went wrong with that request. Please try again.