A simple directive for accurately adding an ellipsis to overflowing text in a container