Improve link label position for tree layout