mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-28 01:00:13 +02:00
Move code fontsize to CSS custom variable.
Console fontsize is also now controlled by settings.
This commit is contained in:
@@ -286,11 +286,10 @@ export default class ContentWrap extends Component {
|
||||
]).then(() => this.setPreviewContent(true));
|
||||
}
|
||||
applyCodemirrorSettings(prefs) {
|
||||
/* if (window.consoleEl) {
|
||||
window.consoleEl.querySelector(
|
||||
'.CodeMirror'
|
||||
).style.fontSize = `${parseInt(prefs.fontSize, 10)}px`;
|
||||
} */
|
||||
document.documentElement.style.setProperty(
|
||||
'--code-font-size',
|
||||
`${parseInt(prefs.fontSize, 10)}px`
|
||||
);
|
||||
|
||||
// Replace correct css file in LINK tags's href
|
||||
if (prefs.editorTheme) {
|
||||
|
Reference in New Issue
Block a user