Truncate item name based on terminal size