mirror of https://github.com/statping/statping
fix: tree style
parent
c163cca708
commit
fbfe046c55
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue