From 6eaca1c255fdb8b1a504a0504fdb5273a5d47227 Mon Sep 17 00:00:00 2001 From: Salam Dalloul Date: Sat, 17 Jun 2023 21:22:39 +0200 Subject: [PATCH] #61 fix nesting treeview --- .../rightSidebar/TreeView/TreeViewItem.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/client/components/views/editView/rightSidebar/TreeView/TreeViewItem.js b/src/client/components/views/editView/rightSidebar/TreeView/TreeViewItem.js index 458db061..7b33620b 100644 --- a/src/client/components/views/editView/rightSidebar/TreeView/TreeViewItem.js +++ b/src/client/components/views/editView/rightSidebar/TreeView/TreeViewItem.js @@ -28,11 +28,11 @@ const CustomTreeItem = styled((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), + // }, }, }, }, @@ -42,14 +42,14 @@ const CustomTreeItem = styled((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,