diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 0a071f37..d324b4c8 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -110,9 +110,6 @@ export const dashboardStore = defineStore({ : 3, }; } - if (type === "Event") { - newItem.h = 24; - } if (["Trace", "Profile", "Log", "DemandLog", "Ebpf"].includes(type)) { newItem.h = 36; } @@ -168,9 +165,6 @@ export const dashboardStore = defineStore({ showDepth: true, }; } - if (type === "Event") { - newItem.h = 24; - } if (["Trace", "Profile", "Log", "DemandLog", "Ebpf"].includes(type)) { newItem.h = 32; } diff --git a/src/styles/reset.scss b/src/styles/reset.scss index e6b3f8fd..e3e1053a 100644 --- a/src/styles/reset.scss +++ b/src/styles/reset.scss @@ -160,6 +160,7 @@ div.vis-tooltip { overflow: hidden; background-color: #fff !important; white-space: normal !important; + font-size: 12px !important; } .vis-item { diff --git a/src/views/dashboard/controls/Event.vue b/src/views/dashboard/controls/Event.vue index a20bc5e9..e510a138 100644 --- a/src/views/dashboard/controls/Event.vue +++ b/src/views/dashboard/controls/Event.vue @@ -72,6 +72,7 @@ function removeWidget() { position: absolute; top: 5px; right: 3px; + z-index: 9999; } .header { diff --git a/src/views/dashboard/related/event/Content.vue b/src/views/dashboard/related/event/Content.vue index 11e41039..7ce35316 100644 --- a/src/views/dashboard/related/event/Content.vue +++ b/src/views/dashboard/related/event/Content.vue @@ -59,23 +59,30 @@ function visTimeline() { }; }); const items: any = new DataSet(events); - const options = { + const options: any = { height: h, width: "100%", + minHeight: "150px", locale: "en", autoResize: false, tooltip: { + overflowMethod: "cap", template(item) { const data = item.data || {}; - return `