Skip to content

Commit

Permalink
#61 fix nesting treeview
Browse files Browse the repository at this point in the history
  • Loading branch information
Salam Dalloul committed Jun 17, 2023
1 parent 52d5adb commit 6eaca1c
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ const CustomTreeItem = styled((props) => <TreeItem {...props} />)(
color: 'var(--tree-view-color)',

[`& + .${treeItemClasses.group}`]: {
marginLeft: 0,
// marginLeft: 0,
backgroundColor: alpha(theme.palette.primary.main, 0.03),
[`& .${treeItemClasses.content}`]: {
paddingLeft: theme.spacing(4),
},
// [`& .${treeItemClasses.content}`]: {
// paddingLeft: theme.spacing(4),
// },
},
},
},
Expand All @@ -42,14 +42,14 @@ const CustomTreeItem = styled((props) => <TreeItem {...props} />)(
opacity: 0.3,
},
},
[`& .${treeItemClasses.group}`]: {
// adjust margin it nest list spacing isn't consistent
marginLeft: 0,
// marginLeft: 0,
[`& .${treeItemClasses.content}`]: {
paddingLeft: theme.spacing(3),
},
},
// [`& .${treeItemClasses.group}`]: {
// adjust margin it nest list spacing isn't consistent
// marginLeft: 0,
// marginLeft: 0,
// [`& .${treeItemClasses.content}`]: {
// paddingLeft: theme.spacing(3),
// },
// },
[`& .${treeItemClasses.focused}`]: {
backgroundColor: `var(--tree-view-bg-color, ${alpha(
theme.palette.primary.main,
Expand Down

0 comments on commit 6eaca1c

Please sign in to comment.