Skip to content

Commit

Permalink
Fix background color for the nbdime's webapps.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaudinFlorence committed Oct 16, 2023
1 parent 83a768f commit 22688ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/nbdime/src/common/mergeview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const baseTheme = EditorView.baseTheme({
border: 'var(--jp-border-width) solid var(--jp-border-color1)',
fontSize: '90%',
padding: '0 3px',
borderRadius: '4px',
borderRadius: '4px'
},
});

Expand Down Expand Up @@ -1483,10 +1483,12 @@ export class MergeView extends Panel {
leftWidget = left.remoteEditorWidget;
}
this.addWidget(leftWidget);
leftWidget.addClass('cm-merge-pane');
leftWidget.addClass('cm-merge-left-editor');

if (showBase) {
this.addWidget(this._base);
this._base.addClass('cm-merge-pane');
this._base.addClass('cm-central-editor');
}

Expand Down Expand Up @@ -1572,6 +1574,7 @@ export class MergeView extends Panel {
);
}
}
mergeWidget.addClass('cm-merge-pane');
mergeWidget.addClass('cm-merge-editor');
//END MERGE CASE
panes = 3 + (showBase ? 1 : 0);
Expand All @@ -1590,6 +1593,7 @@ export class MergeView extends Panel {
} else {
panes = 2;
this.addWidget(this._base);
this._base.addClass('cm-merge-pane');
this._base.addClass('cm-diff-left-editor');
right = this._right = new DiffView({
model: remote,
Expand All @@ -1602,6 +1606,7 @@ export class MergeView extends Panel {
},
});
let rightWidget = right.remoteEditorWidget;
rightWidget.addClass('cm-merge-pane');
rightWidget.addClass('cm-diff-right-editor');
this.addWidget(new Widget({ node: right.buildGap() }));
this.addWidget(rightWidget);
Expand Down
1 change: 1 addition & 0 deletions packages/nbdime/src/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
white-space: normal;
vertical-align: top;
width: 100%;
background-color: var(--jp-cell-editor-background);
}

.nbdime-root .cm-merge-pane-rightmost {
Expand Down

0 comments on commit 22688ea

Please sign in to comment.