add class "is-truncated" to element when trancation is done