diff --git a/src/styles/globals.css b/src/styles/globals.css index 1e91f86ee..e8e9ab350 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -63,3 +63,7 @@ dialog ::-webkit-scrollbar { ::-webkit-details-marker { display: none; } + +.chart + .chart { + margin-top: 36px; +} diff --git a/src/utils/config/api-response.js b/src/utils/config/api-response.js index 01bef3a13..37c800551 100644 --- a/src/utils/config/api-response.js +++ b/src/utils/config/api-response.js @@ -171,7 +171,7 @@ export async function servicesResponse() { if (definedLayouts) { const layoutIndex = definedLayouts.findIndex((layout) => layout === mergedGroup.name); if (layoutIndex > -1) sortedGroups[layoutIndex] = mergedGroup; - else if (configuredGroup.name) { + else if (configuredGroup.parent) { // this is a nested group, so find the parent group and merge the services mergeSubgroups(configuredServices, mergedGroup); } else unsortedGroups.push(mergedGroup); diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js index 0e3f6e3d7..02743682b 100644 --- a/src/utils/config/service-helpers.js +++ b/src/utils/config/service-helpers.js @@ -699,6 +699,7 @@ export function findGroupByName(groups, name) { } else if (group.groups) { const foundGroup = findGroupByName(group.groups, name); if (foundGroup) { + foundGroup.parent = group; return foundGroup; } } diff --git a/src/widgets/glances/components/container.jsx b/src/widgets/glances/components/container.jsx index 3e9e8b5a7..3babeda14 100644 --- a/src/widgets/glances/components/container.jsx +++ b/src/widgets/glances/components/container.jsx @@ -18,7 +18,7 @@ export default function Container({ children, widget, error = null, chart = true } return ( -