Line goes out of the widgets!

Hello,

I am using elgg 1.7. If i upload a photo that has a long name ... aaaaaaaaaaaaaaaaaaa.jpg  then it goes out from the widgets, in river, in activity...

Any idea why it happens? And how can I fix it?

 

Thanks.