Skip to content

Commit

Permalink
Fixes editor layout issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Nov 21, 2023
1 parent 943428e commit f8b66f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/vs/editor/browser/widget/diffEditor/diffEditorEditors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ export class DiffEditorEditors extends Disposable {
result.unicodeHighlight = this._options.editorOptions.get().unicodeHighlight || {};
result.wordWrapOverride1 = this._options.diffWordWrap.get();
}
result.glyphMargin = this._options.renderSideBySide.get();

if (changedOptions.originalAriaLabel) {
result.ariaLabel = changedOptions.originalAriaLabel;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class DiffEditorItemTemplate extends Disposable implements IPooledObject<
flexDirection: 'column',
}
}, [
h('div@editor', { style: { flex: '1' } }),
h('div.editorContainer@editor', { style: { flex: '1' } }),
])
])
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
border-left: 2px var(--vscode-notebook-focusedCellBorder) solid;
}

.monaco-component .multiDiffEntry .editor {
.monaco-component .multiDiffEntry .editorParent .editorContainer {
border-left: 17px var(--vscode-tab-inactiveBackground) solid;
}

Expand Down

0 comments on commit f8b66f6

Please sign in to comment.