Auto shortening of file names by CSS only.

I have just defined width as 40em and it works fine for me, even on window resizing. I am not 100% sure this is the right approach but I too can't find any error. Please evaluate. Fix for this : https://github.com/owncloud/core/issues/215

Thanks!