From 245c737b2c1ea0201131f87830dcaabbeb629859 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 27 Jun 2023 14:39:44 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2932=20fix=EF=BC=9AMap=20of=20datacenter=20?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E5=90=8ETooltip=E4=BD=8D=E7=BD=AE=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/css/common.scss | 11 +++++++++++ nezha-fronted/src/components/chart/chart/chartMap.vue | 2 +- nezha-fronted/src/components/chart/chartList.vue | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/assets/css/common.scss b/nezha-fronted/src/assets/css/common.scss index b0ce70510..7b9b98832 100644 --- a/nezha-fronted/src/assets/css/common.scss +++ b/nezha-fronted/src/assets/css/common.scss @@ -630,3 +630,14 @@ textarea { background-position: 100% 0%; } } +.no-transform-dialog{ + display: flex; + align-items: center; + justify-content: center; + height: 100vh; + width: 100vw; + .el-dialog{ + position: unset !important; + transform: unset !important; + } +} diff --git a/nezha-fronted/src/components/chart/chart/chartMap.vue b/nezha-fronted/src/components/chart/chart/chartMap.vue index 63804daaa..ae58f5ebc 100644 --- a/nezha-fronted/src/components/chart/chart/chartMap.vue +++ b/nezha-fronted/src/components/chart/chart/chartMap.vue @@ -31,7 +31,7 @@
-
{{$t('overall.agent')}} {{$t('config.agent.up')}}}
+
{{$t('overall.agent')}} {{$t('config.agent.up')}}
diff --git a/nezha-fronted/src/components/chart/chartList.vue b/nezha-fronted/src/components/chart/chartList.vue index a38c848ff..cc83f504c 100644 --- a/nezha-fronted/src/components/chart/chartList.vue +++ b/nezha-fronted/src/components/chart/chartList.vue @@ -72,6 +72,7 @@ :visible.sync="fullscreen.visible" :show-close="false" class="nz-dialog chart-fullscreen" + :class="fullscreen.chartInfo.type === 'map' ? 'no-transform-dialog' : ''" destroy-on-close fullscreen :modal-append-to-body="false"