How to remove extra space in Blazor Treeview Node

Answer:

We can change the TreeView‘s default node height using CSS styles. Refer to the below code snippet.

<style> 

    /*Remove the padding of each TreeView node*/ 

    .e-treeview .e-list-item { 

        padding:0px!important; 

        overflow:hidden; 

    } 

    /*Set the heighta s 26px for each node*/ 

    .e-treeview .e-fullrow { 

        height:26px; 

    } 

    /*set the content height of the TreeView node */ 

    .e-treeview .e-list-text { 

        line-height: 26px ; 

        min-height: 26px;       

    } 

   </style>


Find the sample for to remove extra space in Treeview node from here.


Loader.
Up arrow icon