diff --git a/src/views/traffic/components/box-3.vue b/src/views/traffic/components/box-3.vue index 8830003..f62c9bd 100644 --- a/src/views/traffic/components/box-3.vue +++ b/src/views/traffic/components/box-3.vue @@ -151,10 +151,10 @@ provide(THEME_KEY, 'dark'); const option1 = ref({ backgroundColor: 'transparent', - height: fitChartSize(230), width: '92%', + // height: fitChartSize(300), grid: { - top: '50', + top: fitChartSize(90), bottom: '0', left: '4%', containLabel: true, @@ -392,8 +392,9 @@ left: vw(-8); span { - position: relative; - top: vh(-5); + position: absolute; + top: 50%; + transform: translateY(-50%); } } }