Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix black dialog text (again)
  • Loading branch information
code-asher committed Apr 5, 2019
commit a66e083b6b8a37dcbaea3bb4a10b170a9f951697
2 changes: 1 addition & 1 deletion packages/ide/src/fill/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class Dialog {
public show(): void {
if (!this.cachedActiveElement) {
this.cachedActiveElement = document.activeElement as HTMLElement;
(document.getElementById("workbench.main.container") || document.body).appendChild(this.overlay);
(document.querySelector(".monaco-workbench") || document.body).appendChild(this.overlay);
document.addEventListener("keydown", this.onKeydown);
if (this.input) {
this.input.focus();
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/src/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Dialog {
this.root.style.width = "850px";
this.root.style.height = "600px";
this.background.appendChild(this.root);
(document.getElementById("workbench.main.container") || document.body).appendChild(this.background);
(document.querySelector(".monaco-workbench") || document.body).appendChild(this.background);
this.root.classList.add("dialog");

const setProperty = (vari: string, id: string): void => {
Expand Down