From 7dabd0335f5564baf356222b3507d2a4c5fbdf5d Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 22 Dec 2024 16:42:38 -0800 Subject: [PATCH 1/3] Remove service group bookmarksStyle --- src/pages/index.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 639aab2e5..78af79992 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -297,7 +297,6 @@ function Home({ initialSettings }) { disableCollapse={settings.disableCollapse} useEqualHeights={settings.useEqualHeights} groupsInitiallyCollapsed={settings.groupsInitiallyCollapsed} - bookmarksStyle={settings.bookmarksStyle} /> ) : ( Date: Sun, 22 Dec 2024 17:48:49 -0800 Subject: [PATCH 2/3] Tweak: remove extra padding for nested groups (#4474) --- src/components/services/group.jsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/services/group.jsx b/src/components/services/group.jsx index f25f7ec10..f646f5535 100644 --- a/src/components/services/group.jsx +++ b/src/components/services/group.jsx @@ -15,6 +15,7 @@ export default function ServicesGroup({ disableCollapse, useEqualHeights, groupsInitiallyCollapsed, + isSubgroup, }) { const panel = useRef(); @@ -22,14 +23,22 @@ export default function ServicesGroup({ if (layout?.initiallyCollapsed ?? groupsInitiallyCollapsed) panel.current.style.height = `0`; }, [layout, groupsInitiallyCollapsed]); + let groupMargin = layout?.header === false ? "-my-1" : ""; + if (isSubgroup && layout?.header === false) groupMargin = "-my-3"; + + let groupPadding = layout?.header === false ? "px-1" : "p-1"; + if (isSubgroup) groupPadding = ""; + return (
@@ -96,6 +105,7 @@ export default function ServicesGroup({ disableCollapse={disableCollapse} useEqualHeights={useEqualHeights} groupsInitiallyCollapsed={groupsInitiallyCollapsed} + isSubgroup /> ))}
From 94936ed09d64d594fe991eac998704b8fa5aad93 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:37:48 -0800 Subject: [PATCH 3/3] Tweak: again trying to restore chart sizing in 0.10.x (#4479) --- src/styles/globals.css | 4 ++++ src/widgets/glances/components/chart.jsx | 2 +- src/widgets/glances/components/chart_dual.jsx | 2 +- src/widgets/glances/components/container.jsx | 4 ++-- src/widgets/glances/metrics/fs.jsx | 2 +- src/widgets/glances/metrics/info.jsx | 12 ++++++++---- src/widgets/glances/metrics/process.jsx | 10 ++++++++-- 7 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/styles/globals.css b/src/styles/globals.css index 1e91f86ee..b1cc1edbb 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: 2em; +} diff --git a/src/widgets/glances/components/chart.jsx b/src/widgets/glances/components/chart.jsx index f41e4d114..132fcc8e4 100644 --- a/src/widgets/glances/components/chart.jsx +++ b/src/widgets/glances/components/chart.jsx @@ -8,7 +8,7 @@ class Chart extends PureComponent { const { dataPoints, formatter, label } = this.props; return ( -
+
diff --git a/src/widgets/glances/components/chart_dual.jsx b/src/widgets/glances/components/chart_dual.jsx index 5cc5dea68..5fabe755a 100644 --- a/src/widgets/glances/components/chart_dual.jsx +++ b/src/widgets/glances/components/chart_dual.jsx @@ -8,7 +8,7 @@ class ChartDual extends PureComponent { const { dataPoints, formatter, stack, label, stackOffset } = this.props; return ( -
+
diff --git a/src/widgets/glances/components/container.jsx b/src/widgets/glances/components/container.jsx index 92d7a45d7..01a7e05d5 100644 --- a/src/widgets/glances/components/container.jsx +++ b/src/widgets/glances/components/container.jsx @@ -18,9 +18,9 @@ export default function Container({ children, widget, error = null, chart = true } return ( -
+
{children} -
+
{chart &&
} {!chart &&
}
diff --git a/src/widgets/glances/metrics/fs.jsx b/src/widgets/glances/metrics/fs.jsx index d1ff412c1..3285bd0e5 100644 --- a/src/widgets/glances/metrics/fs.jsx +++ b/src/widgets/glances/metrics/fs.jsx @@ -43,7 +43,7 @@ export default function Component({ service }) { return ( {chart && ( -
+
- + + {chart && ( +
+ )} + + {quicklookData && quicklookData.cpu_name && chart && (
{quicklookData.cpu_name}
)} @@ -124,7 +128,7 @@ export default function Component({ service }) {
{chart && ( - + {systemData && systemData.linux_distro &&
{systemData.linux_distro}
} {systemData && systemData.os_version &&
{systemData.os_version}
} {systemData && systemData.hostname &&
{systemData.hostname}
} @@ -137,7 +141,7 @@ export default function Component({ service }) {
)} - + {chart && } {chart && } diff --git a/src/widgets/glances/metrics/process.jsx b/src/widgets/glances/metrics/process.jsx index b20b4c634..997948f41 100644 --- a/src/widgets/glances/metrics/process.jsx +++ b/src/widgets/glances/metrics/process.jsx @@ -42,10 +42,16 @@ export default function Component({ service }) { } data.splice(chart ? 5 : 1); + let headerYPosition = "top-4"; + let listYPosition = "bottom-4"; + if (chart) { + headerYPosition = "-top-6"; + listYPosition = "-top-3"; + } return ( - +
{t("resources.cpu")}
@@ -53,7 +59,7 @@ export default function Component({ service }) {
- +
{data.map((item) => (