This commit is contained in:
Henning Dieterichs 2024-04-02 15:01:31 +02:00 committed by Henning Dieterichs
parent 3289aba2b8
commit 1c26e87c0d
2 changed files with 3 additions and 3 deletions

View file

@ -57,8 +57,8 @@ export class DiffEditorWidget extends DelegatingEditor implements IDiffEditor {
private readonly elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$('span', {}, 'No Changes')]),
h('div.editor.original@original', { style: { position: 'absolute', height: '100%', zIndex: '1', } }),
h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%', zIndex: '1', } }),
h('div.editor.original@original', { style: { position: 'absolute', height: '100%', } }),
h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%', } }),
h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
]);
private readonly _diffModel = observableValue<DiffEditorViewModel | undefined>(this, undefined);

View file

@ -38,7 +38,7 @@ export class DiffEditorGutter extends Disposable {
public readonly width = derived(this, reader => this._hasActions.read(reader) ? width : 0);
private readonly elements = h('div.gutter@gutter', { style: { position: 'absolute', height: '100%', width: width + 'px', zIndex: '0' } }, []);
private readonly elements = h('div.gutter@gutter', { style: { position: 'absolute', height: '100%', width: width + 'px' } }, []);
constructor(
diffEditorRoot: HTMLDivElement,