diff options
-rw-r--r-- | public/js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js index 728f267..58e6919 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -65,7 +65,7 @@ window.addEventListener("load", function() { for (let frag of expl) { flen = c.measureText(frag).width llen += flen - if (llen > width) { + if (llen >= width) { llen = 0 lpos = 0 y += 15 @@ -137,7 +137,7 @@ window.addEventListener("load", function() { c.fillText(time_f(stt) + " - " + time_f(ett), xstart + 5, ystart + 10) c.font = '12px sans-serif' - break_text(c, s.film.title, xstart + 5, ystart + 25, 90) + break_text(c, s.film.title, xstart + 5, ystart + 25, 85) } } |