assets/js/frame.js in appscms-tools-theme-2.2.8 vs assets/js/frame.js in appscms-tools-theme-2.2.9
- old
+ new
@@ -119,14 +119,17 @@
document.fonts.add(font)
let textValue = document.querySelector(`#${item.id}`).value
if (textValue.length > 10 && item.fontSizeOption1) {
item.fontSize = item.fontSizeOption1
}
- if (textValue.length > 20 && item.fontSizeOption2) {
+ if (textValue.length > 12 && item.fontSizeOption2) {
item.fontSize = item.fontSizeOption2
}
- if (textValue.length > 30 && item.fontSizeOption3) {
+ if (textValue.length > 15 && item.fontSizeOption3) {
item.fontSize = item.fontSizeOption3
+ }
+ if (textValue.length > 20 && item.fontSizeOption4) {
+ item.fontSize = item.fontSizeOption4
}
ctx.font = `${item.fontSize}px ${item.font}`
if (item.shadowColor) {
ctx.shadowColor = `${item.shadowColor}`
}