diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2019-10-05 14:06:45 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2019-10-05 14:06:45 +0200 |
commit | e715ee324930ed8fce7524dd21ffaf47af1bb402 (patch) | |
tree | 4f1404588a287068513ce06d763942cea4f4a88c /public | |
parent | e78b32968fe6fdc2494b3d42fbd72848b3fc8b5c (diff) | |
download | ramaskrik-social-e715ee324930ed8fce7524dd21ffaf47af1bb402.tar.gz ramaskrik-social-e715ee324930ed8fce7524dd21ffaf47af1bb402.tar.bz2 ramaskrik-social-e715ee324930ed8fce7524dd21ffaf47af1bb402.zip |
Adjust where long titles break.
Diffstat (limited to 'public')
-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) } } |