font size in the UI

This commit is contained in:
Pete Matsyburka
2024-06-20 22:15:45 +03:00
parent 4ae834d6f7
commit 27c4dc7eca
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -340,12 +340,18 @@ export default {
computedStyle () {
const { x, y, w, h } = this.area
return {
const style = {
top: y * 100 + '%',
left: x * 100 + '%',
width: w * 100 + '%',
height: h * 100 + '%'
}
if (this.field.preferences?.font_size) {
style.fontSize = this.field.preferences.font_size + 'pt'
}
return style
}
},
watch: {