Search code examples
cssangularangular-materialangular6

Reducing line height in angular material tree


I am using a angular tree material to display JSON data, I am unsatisfied by the amount of white spacing there is between lines. I have tried playing with mat-tree-node.line-height in the css with zero changes. How can I reduce all this vertical white space?

enter image description here


Solution

  • Simply by overriding their css:

    .mat-tree-node { min-height: 30px }