diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 2590367fa..3e0929405 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -530,22 +530,13 @@ li{ background-color: #f0f0f0; } .nz-table-gear { - display: inline-block; - width: 8px; box-sizing: border-box; - border-left: 1px solid white; position: relative; } .nz-table-gear>i { cursor: pointer; position: absolute; - left: 7px; -} -.nz-table-txt { - border-right: 1px solid #d4d4d4; - width: calc(100% - 19px); - display: inline-block; - box-sizing: border-box; + left: -3px; } /* end--内容*/ diff --git a/nezha-fronted/src/components/page/alert/config.vue b/nezha-fronted/src/components/page/alert/config.vue index e76856306..a49d136a7 100644 --- a/nezha-fronted/src/components/page/alert/config.vue +++ b/nezha-fronted/src/components/page/alert/config.vue @@ -54,17 +54,6 @@ show-overflow-tooltip min-width="110px" > - + + + @@ -240,7 +236,7 @@ label: this.$t('alert.config.option'), prop: 'option', show: true, - width: 230 + width: 120 } ], tableData: [], @@ -264,11 +260,11 @@ const dw = this.$refs.elementset.$el.offsetWidth; const dh = this.$refs.elementset.$el.offsetHeight; let positionx = - e.clientX + dw <= w - 10 ? e.clientX - 250 : e.clientX - 250 - dw; + e.clientX + dw <= w - 10 ? e.clientX + 14 : e.clientX + 14 - dw; let positiony = e.clientY + dh <= h - 10 - ? e.clientY - 70 - : e.clientY - 70 - (e.clientY + dh - h); + ? e.clientY + 20 + : e.clientY + 20 - (e.clientY + dh - h); this.$store.commit('setPosition', {positionx, positiony}); }, elementsetHide() { diff --git a/nezha-fronted/src/components/page/alert/list.vue b/nezha-fronted/src/components/page/alert/list.vue index 1cf86a337..1090cf57e 100644 --- a/nezha-fronted/src/components/page/alert/list.vue +++ b/nezha-fronted/src/components/page/alert/list.vue @@ -38,17 +38,6 @@ show-overflow-tooltip min-width="110px" > - + + + @@ -303,7 +299,7 @@ label: this.$t('config.account.option'), prop: 'option', show: true, - width: 280, + width: 150, fixed:'right' }], tableData: [], @@ -454,11 +450,11 @@ const dw = this.$refs.elementset.$el.offsetWidth; const dh = this.$refs.elementset.$el.offsetHeight; let positionx = - e.clientX + dw <= w - 10 ? e.clientX - 250 : e.clientX - 250 - dw; + e.clientX + dw <= w - 10 ? e.clientX + 14 : e.clientX + 14 - dw; let positiony = e.clientY + dh <= h - 10 - ? e.clientY - 70 - : e.clientY - 70 - (e.clientY + dh - h); + ? e.clientY + 20 + : e.clientY + 20 - (e.clientY + dh - h); this.$store.commit('setPosition', { positionx, positiony }); }, elementsetHide() { diff --git a/nezha-fronted/src/components/page/config/account.vue b/nezha-fronted/src/components/page/config/account.vue index 474903edb..3e7b360be 100644 --- a/nezha-fronted/src/components/page/config/account.vue +++ b/nezha-fronted/src/components/page/config/account.vue @@ -49,7 +49,7 @@ :key="`col-${index}`" :label="item.label" > -