From 70063c376f89e9560398f7d30772373b5d283f04 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Sun, 8 Oct 2023 10:58:47 +0800 Subject: [PATCH] Fix tooltip style to support multiple metrics scrolling view in a metrics graph (#325) --- 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 98c2bd02..8db91881 100644 --- a/src/views/dashboard/graphs/Bar.vue +++ b/src/views/dashboard/graphs/Bar.vue @@ -82,7 +82,7 @@ limitations under the License. --> }, enterable: true, confine: true, - extraCssText: "max-height: 300px; overflow: auto; border: none;", + extraCssText: "max-height:85%; overflow: auto;", }, legend: { type: "scroll", diff --git a/src/views/dashboard/graphs/Line.vue b/src/views/dashboard/graphs/Line.vue index fdfdbb4c..a9cda6f9 100644 --- a/src/views/dashboard/graphs/Line.vue +++ b/src/views/dashboard/graphs/Line.vue @@ -99,7 +99,7 @@ limitations under the License. --> }, enterable: true, confine: true, - extraCssText: "max-height: 300px; overflow: auto; border: none;", + extraCssText: "max-height:85%; overflow: auto;", }; const tips = { formatter(params: any) {