From 3de00db7dff26e86c93fd9e049a6901b94bf76c4 Mon Sep 17 00:00:00 2001 From: ssongliu Date: Fri, 31 Jul 2026 18:16:39 +0800 Subject: [PATCH] fix: constrain dashboard column height --- frontend/src/views/home/index.vue | 4 ++++ .../license-required/community-restore/index.vue | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 567abad7c18a..99b5c6f4dac8 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -493,6 +493,7 @@ const DASHBOARD_CACHE_TTL = { ioOptions: 60 * 60 * 1000, }; const monitorChartGrid = { left: 65, right: 65, bottom: '20%' }; +const monitorChartLegend = { top: 0, bottom: 'auto' }; const monitorTagsStyle = { left: `${monitorChartGrid.left}px`, right: `${monitorChartGrid.right}px`, @@ -515,6 +516,7 @@ const loadIOChartOption = () => ({ }, ], grid: monitorChartGrid, + legend: monitorChartLegend, formatStr: 'MB', }); const loadNetworkChartOption = () => ({ @@ -530,6 +532,7 @@ const loadNetworkChartOption = () => ({ }, ], grid: monitorChartGrid, + legend: monitorChartLegend, formatStr: 'KB/s', }); @@ -1157,6 +1160,7 @@ onBeforeUnmount(() => {