mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-23 07:16:29 +01:00
@@ -367,7 +367,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
|
||||
content.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { outline: none !important; }`);
|
||||
}
|
||||
|
||||
this.styleElement.innerHTML = content.join('\n');
|
||||
this.styleElement.textContent = content.join('\n');
|
||||
|
||||
this.applyStyles();
|
||||
}
|
||||
@@ -680,7 +680,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
|
||||
});
|
||||
|
||||
|
||||
container.innerHTML = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
|
||||
container.textContent = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
|
||||
elementWidth = dom.getTotalWidth(container);
|
||||
}
|
||||
|
||||
|
||||
@@ -306,7 +306,7 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
|
||||
const replInputLineHeight = this.replInput.getOption(EditorOption.lineHeight);
|
||||
|
||||
// Set the font size, font family, line height and align the twistie to be centered, and input theme color
|
||||
this.styleElement.innerHTML = `
|
||||
this.styleElement.textContent = `
|
||||
.repl .repl-tree .expression {
|
||||
font-size: ${fontSize}px;
|
||||
font-family: ${fontFamily};
|
||||
|
||||
Reference in New Issue
Block a user