diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 2bdd3181..a0b89fe2 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -905,6 +905,9 @@ var toast = (function () { if (sec) te = setTimeout(r.hide, sec * 1000); + if (txt.indexOf('') + 1) + txt = txt.slice(0, txt.indexOf('<')) + ' [...]'; + obj.innerHTML = 'x
' + lf2br(txt) + '
'; obj.className = cl; sec += obj.offsetWidth;