Skip to content

Commit

Permalink
#61 fix nesting files issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Salam Dalloul committed Jun 19, 2023
1 parent 8bb20c5 commit 241895b
Showing 1 changed file with 0 additions and 21 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 @@ -26,40 +25,20 @@ const CustomTreeItem = styled((props) => <TreeItem {...props} />)(
0.1
)})`,
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 241895b

Please sign in to comment.