From 2ccd8ff66cb2cc6f1e11f7b73feea08e27237596 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 31 Dec 2021 10:15:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BC=98=E5=8C=96=20alertmessage?= =?UTF-8?q?=20tooltip=20=E6=98=BE=E7=A4=BA=E4=BD=8D=E7=BD=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/alert/alertLabel.vue | 2 +- .../components/common/alert/alertRuleInfo.vue | 34 +++++-------------- .../common/table/alert/alertMessageTable.vue | 15 +++----- .../page/dashboard/explore/exploreItem.vue | 1 - 4 files changed, 15 insertions(+), 37 deletions(-) diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue index c38c96720..6864ef26d 100644 --- a/nezha-fronted/src/components/common/alert/alertLabel.vue +++ b/nezha-fronted/src/components/common/alert/alertLabel.vue @@ -299,7 +299,7 @@ export default { const leftOffSetView = this.detailList ? -80 : 10 const leftOffSet = this.detailList ? -80 : 10 const topOffSet = this.detailList ? 60 : 22 - if (position.top + this.heightList > clientHeight) { + if (position.top > clientHeight / 2) { return { left: `${position.left + position.width + leftOffSet}px`, top: `${position.top - this.heightList + topOffSet}px` diff --git a/nezha-fronted/src/components/common/alert/alertRuleInfo.vue b/nezha-fronted/src/components/common/alert/alertRuleInfo.vue index ebb61d9dd..39a12ca69 100644 --- a/nezha-fronted/src/components/common/alert/alertRuleInfo.vue +++ b/nezha-fronted/src/components/common/alert/alertRuleInfo.vue @@ -1,5 +1,5 @@