ThumbnailBuilder

chore: update font size length param

3/12/2020 12:23:30 PM

Changes

js/editCanvas.js 2(+1 -1)

Details

js/editCanvas.js 2(+1 -1)

diff --git a/js/editCanvas.js b/js/editCanvas.js
index d56bd3f..a2e40c9 100644
--- a/js/editCanvas.js
+++ b/js/editCanvas.js
@@ -75,7 +75,7 @@ var categoryComponent = {
     ctx.rotate(-0.5 * Math.PI)
     editCanvas.style.letterSpacing = 4
     ctx.fillStyle = 'rgba(255, 255, 255, 0.8)'
-    ctx.font = (this.properties.text().length > 21) ? '37px sans-serif' : '48px sans-serif'
+    ctx.font = (this.properties.text().length > 18) ? '37px sans-serif' : '48px sans-serif'
     ctx.textAlign = "center"
     ctx.fillText(this.properties.text(), 0, 0)
     ctx.restore()