Apply ellipsis rules for menu items