fix: tree style

pull/1097/head
smit95tpatel 2022-03-10 16:50:28 +05:30
parent c163cca708
commit fbfe046c55
2 changed files with 4 additions and 5 deletions

View File

@ -142,9 +142,7 @@ const getRootNodes = (data) => {
const getTreeData = (parentServices, serviceStatus) => {
const treeData = [];
for (let i=0; i<parentServices.length; i++) {
const parentService = parentServices[i];
parentServices.forEach((parentService) => {
if (!parentService.sub_services_detail) {
treeData.push({ parent: parentService, children: [] });
} else {
@ -162,7 +160,8 @@ const getTreeData = (parentServices, serviceStatus) => {
treeData.push({ parent: parentService, children });
}
}
});
return treeData;
};

View File

@ -124,12 +124,12 @@ ul, li {
.list-child {
margin-left: 13px;
position: relative;
min-width: 195px;
}
.list-child li {
padding: 0 0 0 28px;
position: relative;
}
.list-child li::before {