feat: reactive font size for ace editor + i18n support for font size settings strings

This commit is contained in:
liyasthomas
2021-08-14 21:40:56 +05:30
parent 691629890f
commit 9f639378ec
22 changed files with 60 additions and 43 deletions

View File

@@ -48,6 +48,14 @@ export default {
}
},
computed: {
appFontSize() {
return getComputedStyle(document.documentElement).getPropertyValue(
"--body-font-size"
)
},
},
watch: {
value(value) {
if (value !== this.cacheValue) {
@@ -94,6 +102,8 @@ export default {
})
})
editor.setFontSize(this.appFontSize)
const completer = {
getCompletions: (
editor,