adjust custom font size

This commit is contained in:
Pete Matsyburka
2024-11-11 13:01:02 +02:00
parent 6759c26d86
commit 8ecaa4fd7a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -404,8 +404,8 @@ export default {
}
if (this.field.preferences?.font_size) {
style.fontSize = `clamp(4pt, 1.6vw, ${this.field.preferences.font_size}pt)`
style.lineHeight = `clamp(6pt, 2.0vw, ${parseInt(this.field.preferences.font_size) + 3}pt)`
style.fontSize = `clamp(4pt, 1.6vw, ${parseInt(this.field.preferences.font_size) * 1.23}pt)`
style.lineHeight = `clamp(6pt, 2.0vw, ${parseInt(this.field.preferences.font_size) * 1.23 + 3}pt)`
}
if (this.field.preferences?.color) {