From 6b9170cb4a374ba280e63b390d073138b4af2236 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Tue, 21 Jun 2022 16:51:57 +0800 Subject: [PATCH] resize --- src/assets/icons/add_fill.svg | 15 +++++++++++++++ src/store/modules/dashboard.ts | 14 ++++++++------ src/views/dashboard/controls/Tab.vue | 14 +++++++------- src/views/dashboard/related/event/Content.vue | 17 ++++++++++++++--- 4 files changed, 44 insertions(+), 16 deletions(-) create mode 100644 src/assets/icons/add_fill.svg diff --git a/src/assets/icons/add_fill.svg b/src/assets/icons/add_fill.svg new file mode 100644 index 00000000..5285acaa --- /dev/null +++ b/src/assets/icons/add_fill.svg @@ -0,0 +1,15 @@ + + \ No newline at end of file diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 7b4976fd..0a071f37 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -110,9 +110,10 @@ export const dashboardStore = defineStore({ : 3, }; } - if ( - ["Trace", "Profile", "Log", "DemandLog", "Ebpf", "Event"].includes(type) - ) { + if (type === "Event") { + newItem.h = 24; + } + if (["Trace", "Profile", "Log", "DemandLog", "Ebpf"].includes(type)) { newItem.h = 36; } if (type === "Text") { @@ -167,9 +168,10 @@ export const dashboardStore = defineStore({ showDepth: true, }; } - if ( - ["Trace", "Profile", "Log", "DemandLog", "Ebpf", "Event"].includes(type) - ) { + if (type === "Event") { + newItem.h = 24; + } + if (["Trace", "Profile", "Log", "DemandLog", "Ebpf"].includes(type)) { newItem.h = 32; } if (type === "Text") { diff --git a/src/views/dashboard/controls/Tab.vue b/src/views/dashboard/controls/Tab.vue index 4bedfd5f..972dc7fb 100644 --- a/src/views/dashboard/controls/Tab.vue +++ b/src/views/dashboard/controls/Tab.vue @@ -37,13 +37,6 @@ limitations under the License. --> v-if="dashboardStore.editMode && canEditTabName" /> - - - - - - - @@ -51,6 +44,13 @@ limitations under the License. --> + + + + + + +
diff --git a/src/views/dashboard/related/event/Content.vue b/src/views/dashboard/related/event/Content.vue index 9fb085cd..8f4a6f8f 100644 --- a/src/views/dashboard/related/event/Content.vue +++ b/src/views/dashboard/related/event/Content.vue @@ -16,11 +16,12 @@ limitations under the License. -->