Add bottom margin to notebook table, fix python highlighting (#4055)

This commit is contained in:
Chris LaFreniere
2019-02-15 08:32:27 -10:00
committed by GitHub
parent 87bbb41fb6
commit 930e14e258
2 changed files with 4 additions and 3 deletions

View File

@@ -484,15 +484,15 @@ export class CellModel implements ICellModel {
// Otherwise, default to python as the language
let languageInfo = this.languageInfo;
if (languageInfo) {
if (languageInfo.codemirror_mode) {
if (languageInfo.name) {
this._language = languageInfo.name;
} else if (languageInfo.codemirror_mode) {
let codeMirrorMode: nb.ICodeMirrorMode = <nb.ICodeMirrorMode>(languageInfo.codemirror_mode);
if (codeMirrorMode && codeMirrorMode.name) {
this._language = codeMirrorMode.name;
}
} else if (languageInfo.mimetype) {
this._language = languageInfo.mimetype;
} else if (languageInfo.name) {
this._language = languageInfo.name;
}
}

View File

@@ -88,6 +88,7 @@
.notebookEditor .notebook-cellTable {
margin-left: 20px;
margin-top: 10px;
margin-bottom: 10px;
}
.notebookEditor .notebook-cellTable .ui-widget-content.slick-row {