Add Max-width attributes to the filename

This is to prevent the filename to be larger than the parent. I will add a few lines of CSS too.