Closed jameschetwood closed 4 years ago
@jameschetwood Hi, it's not a bug. The extra padding is for the "+" sign. Because the second node at the first level has no children, it doesn't have the "+" sign. This implementation comes with the built-in styling.
Cool thanks for clarifying.
I have a very simple, currently unstyled example. When all of the nodes are collapsed the first one has a
padding-left
of0.75rem
, the second has2.75rem
.Is this a bug? I would expect them to both be 0 or at least equal?
https://codesandbox.io/s/lingering-browser-48ox0?file=/src/App.tsx