diff --git a/nezha-fronted/config/index.js b/nezha-fronted/config/index.js index 004b3ab0c..4215b1ba8 100644 --- a/nezha-fronted/config/index.js +++ b/nezha-fronted/config/index.js @@ -19,8 +19,8 @@ module.exports = { } }, // Various Dev Server settings - // host: '0.0.0.0', // can be overwritten by process.env.HOST host: '0.0.0.0', // can be overwritten by process.env.HOST + // host: 'localhost', // can be overwritten by process.env.HOST port: 80, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true, @@ -71,5 +71,5 @@ module.exports = { // `npm run build --report` // Set to `true` or `false` to always turn it on or off bundleAnalyzerReport: process.env.npm_config_report - }, + } } diff --git a/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss b/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss index c4edea307..283d264b4 100644 --- a/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss +++ b/nezha-fronted/src/assets/css/components/common/rightBox/chartRightBox/chartRightBox.scss @@ -148,6 +148,15 @@ padding-left: 10px; box-sizing: border-box; } + .mapping-icon{ + position: absolute; + left: 8px; + height: 100%; + display: flex; + align-items: center; + font-size: 18px; + font-style: normal; + } } .thresholds-add{ border: 1px solid $--border-color-light; @@ -156,6 +165,14 @@ margin-bottom: 10px; padding: 3px 10px; } + .prev-mapping-icon{ + font-size: 16px; + height: 100%; + display: flex; + align-items: center; + position: absolute; + left: 200px; + } .prev-mapping-box{ border: 1px solid $--border-color-light; display: inline-block; @@ -167,7 +184,7 @@ text-align: center; position: absolute; top: 0; - left: 200px; + left: 250px; } .element-item { padding: 0; diff --git a/nezha-fronted/src/components/chart/chart/chartBar.vue b/nezha-fronted/src/components/chart/chart/chartBar.vue index 9e82185fa..6289373ef 100644 --- a/nezha-fronted/src/components/chart/chart/chartBar.vue +++ b/nezha-fronted/src/components/chart/chart/chartBar.vue @@ -28,7 +28,7 @@ import { formatScientificNotation, getMetricTypeValue } from '@/components/commo import chartDataFormat from '@/components/chart/chartDataFormat' import { initColor } from '@/components/chart/chart/tools' import lodash from 'lodash' -import bus from "@/libs/bus"; +import bus from '@/libs/bus' export default { name: 'chart-bar', @@ -178,8 +178,13 @@ export default {