Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup preview styles and keep status bar consistent #180518

Merged
merged 1 commit into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -476,15 +475,13 @@ class InteractiveEditorWidget {
}

hideEditsPreview() {
this._elements.root.classList.remove('preview');
this._elements.previewDiff.classList.add('hidden');
this._previewDiffEditor.setModel(null);
this._previewDiffModel.clear();
this._onDidChangeHeight.fire();
}

showCreatePreview(uri: URI, edits: TextEdit[]): void {
this._elements.root.classList.add('preview');
this._elements.previewCreateTitle.classList.remove('hidden');
this._elements.previewCreate.classList.remove('hidden');

Expand Down