add ellipsis and expansion option to clipped text