From e715ee324930ed8fce7524dd21ffaf47af1bb402 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 5 Oct 2019 14:06:45 +0200 Subject: Adjust where long titles break. --- public/js/app.js | 4 ++-- 1 file 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) } } -- cgit v1.2.3