It does that because it's giving you a straight line route to the next node, and many of the nodes there are close to the border. Just watch to see when you change zones so you don't go chasing low level nodes.
Not spefically while mining, you'd have to go into the options and change the scale of the player trail when ou start mining and then change it back when you're done.
__________________
|