2

I am trying to work with angular and material components. And I have two questions:

1) How to reduce nested node depth(left offset) ? Please, see screenshot

2) I apply next style for change max-height:

.mat-tree-node { 
  min-height: 25px;
  max-height: 25px; 
}

And now when I press to expand button, gray circle is drawn incorrectly. How can i fix it(change it radius)? Please, see screenshot

1 Answer 1

1

to reduce left offset you can do so by css take a look stackblitz

to make ripple effect work properly and because you change the min-height and max-height of their grandparent .mat-tree-node do so

.mat-tree-node > .mat-icon-button {
  width: 25px;
  height: 25px;
  line-height: 25px;
}
Sign up to request clarification or add additional context in comments.

3 Comments

The second question is resolved, thank you! But the first one is still not work. Screenshot: image.ibb.co/ifvhvA/padding.png
Unfortunately it did not help(
i just added stackblitz to show you how to solve "reduce left offset problem"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.