Avoid line breaking in tree nodes

Fix the issue with checkboxes jumping to the next line when hovering
over the tree elements.