add text-overflow for horizontal text mode