Align colons in help dialog.

This commit is contained in:
Stefan van der Walt 2011-08-20 14:56:10 -07:00
parent d60edf973d
commit dfeb4342ed
2 changed files with 10 additions and 2 deletions

View File

@ -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 File

@ -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'});