Skip to content

Commit

Permalink
Merge pull request #110 from MetaCell/feature/PSYNEU-61
Browse files Browse the repository at this point in the history
#61 fix nesting treeview
  • Loading branch information
ddelpiano authored Jun 19, 2023
2 parents 8bb20c5 + faf6773 commit e85fbc0
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { HiddenIcon, TargetIcon } from './Icons';
const CustomTreeItem = styled((props) => <TreeItem {...props} />)(
({ theme }) => ({
[`& .${treeItemClasses.content}`]: {
paddingLeft: '0.25rem',
borderWidth: '1px',
height: '2.25rem',
borderStyle: 'solid',
Expand All @@ -28,38 +27,22 @@ const CustomTreeItem = styled((props) => <TreeItem {...props} />)(
color: 'var(--tree-view-color)',

[`& + .${treeItemClasses.group}`]: {
marginLeft: 0,
backgroundColor: alpha(theme.palette.primary.main, 0.03),
[`& .${treeItemClasses.content}`]: {
paddingLeft: theme.spacing(4),
},
},
},
},
[`& .${treeItemClasses.iconContainer}`]: {
marginRight: '0.188rem',
'& .close': {
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.focused}`]: {
backgroundColor: `var(--tree-view-bg-color, ${alpha(
theme.palette.primary.main,
0.03
)})`,
color: 'var(--tree-view-color)',
},
[`& .${treeItemClasses.label}`]: {
paddingLeft: 0,
},
})
);

Expand Down

0 comments on commit e85fbc0

Please sign in to comment.