Clamp an element by adding ellipsis if content exceeds parent's width