frontend-collective / frontend-collective/react-sortable-tree

CSS: Change the width according to the level

Open
#743 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

Hello everybody. I try to make a Custom Node Content Render it goes almost well until a little problem. I would like the end of my boxes to be all on the same level. Do you have any idea how to do this?

![image](https://user-images.githubusercontent.com/55789437/85130940-22cc1680-b236-11ea-9c38-f52d99c6b247.png)

As you can see on my screenshot, I don't want my subtrees to stick out of my main trees. thank you.

Note : For the size I use :
```
generateNodeProps={({node, path}) => {
return {
style: {
width: '50vw',
},
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.