From 65607a5540d87b2b9eca1cb2dfdf3505071ea907 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Mon, 24 Feb 2025 16:38:17 +0800 Subject: [PATCH] fix echarts tooltips (#449) --- src/views/dashboard/graphs/Bar.vue | 2 +- src/views/dashboard/graphs/Line.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/graphs/Bar.vue b/src/views/dashboard/graphs/Bar.vue index 83fd14c3..6c93cbd6 100644 --- a/src/views/dashboard/graphs/Bar.vue +++ b/src/views/dashboard/graphs/Bar.vue @@ -113,7 +113,7 @@ limitations under the License. --> }, enterable: true, confine: true, - extraCssText: "max-height:85%; overflow: auto;", + extraCssText: "max-width: 100%; max-height: 75%; white-space: normal; overflow: auto;", }, legend: { type: "scroll", diff --git a/src/views/dashboard/graphs/Line.vue b/src/views/dashboard/graphs/Line.vue index 64a38783..808fb384 100644 --- a/src/views/dashboard/graphs/Line.vue +++ b/src/views/dashboard/graphs/Line.vue @@ -111,7 +111,7 @@ limitations under the License. --> }, enterable: true, confine: true, - extraCssText: "max-height:85%; overflow: auto;", + extraCssText: "max-width: 100%; max-height: 75%; white-space: normal; overflow: auto;", }; const tips = { show: !props.config.noTooltips,