From f9aebda382f2d03b18d0704661719d4b4ad7e332 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 21 Apr 2023 16:23:56 +0200 Subject: [PATCH] cleanup preview styles and keep status bar consistent --- .../interactiveEditor/browser/interactiveEditor.css | 10 +++------- .../browser/interactiveEditorWidget.ts | 3 --- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditor.css b/src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditor.css index 850a72abb2795..3920ec439076a 100644 --- a/src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditor.css +++ b/src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditor.css @@ -96,10 +96,6 @@ align-items: center; } -.monaco-editor .interactive-editor.preview .status { - flex-direction: row-reverse; -} - .monaco-editor .interactive-editor .status .actions.hidden { display: none; } @@ -165,7 +161,7 @@ display: none; } -.monaco-editor .interactive-editor.preview .previewDiff { +.monaco-editor .interactive-editor .previewDiff { display: inherit; padding: 6px; border: 1px solid var(--vscode-interactiveEditor-border); @@ -175,11 +171,11 @@ margin: 0 2px 6px 2px; } -.monaco-editor .interactive-editor.preview .previewCreateTitle { +.monaco-editor .interactive-editor .previewCreateTitle { padding-top: 6px; } -.monaco-editor .interactive-editor.preview .previewCreate { +.monaco-editor .interactive-editor .previewCreate { display: inherit; padding: 6px; border: 1px solid var(--vscode-interactiveEditor-border); diff --git a/src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorWidget.ts b/src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorWidget.ts index e9d215773f411..12504c4a1318b 100644 --- a/src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorWidget.ts +++ b/src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorWidget.ts @@ -442,7 +442,6 @@ class InteractiveEditorWidget { // --- preview showEditsPreview(actualModel: ITextModel, edits: TextEdit[]) { - this._elements.root.classList.add('preview'); this._elements.previewDiff.classList.remove('hidden'); const pad = 3; @@ -476,7 +475,6 @@ class InteractiveEditorWidget { } hideEditsPreview() { - this._elements.root.classList.remove('preview'); this._elements.previewDiff.classList.add('hidden'); this._previewDiffEditor.setModel(null); this._previewDiffModel.clear(); @@ -484,7 +482,6 @@ class InteractiveEditorWidget { } showCreatePreview(uri: URI, edits: TextEdit[]): void { - this._elements.root.classList.add('preview'); this._elements.previewCreateTitle.classList.remove('hidden'); this._elements.previewCreate.classList.remove('hidden');