[fix bug 1096389] Text that is too long is hidden with an ellipsis

https://bugzilla.mozilla.org/show_bug.cgi?id=1096389

In this version, the text is clipped at the end and the end is replaced with an ellipsis.