Resize project name if the name is too long for the outer container