Fixes #5707: Improve display of tooltips in directive edit form