Skip to content

Commit 7560023

Browse files
committed
style: fix height
1 parent eb7e31c commit 7560023

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/views/dashboard/metrics/components/metrics-chart.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ a-card.metrics-chart(:bordered="false")
173173
// Don't filter out null values - let ECharts handle them with connectNulls: false
174174
175175
// Determine if we should show symbols based on data point count
176-
const shouldShowSymbols = localChartType.value === 'scatter' || data.length <= 50
176+
const shouldShowSymbols = localChartType.value === 'scatter' || data.length <= 20
177177
let symbolSize = 0
178178
if (shouldShowSymbols) {
179179
symbolSize = localChartType.value === 'scatter' ? 6 : 5
@@ -261,10 +261,10 @@ a-card.metrics-chart(:bordered="false")
261261
top: 660 - gridBottom + 20,
262262
},
263263
grid: {
264-
left: '2%',
265-
right: '2%',
264+
left: 30,
265+
right: 30,
266266
bottom: gridBottom, // Dynamic bottom margin based on series count
267-
top: '3%',
267+
top: 30,
268268
containLabel: true,
269269
},
270270
dataZoom: [

src/views/dashboard/metrics/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ a-layout.new-layout
320320
box-shadow: none;
321321
}
322322
.new-layout {
323-
height: 100vh;
323+
height: calc(100vh - 29px);
324324
background: #fff;
325325
}
326326

0 commit comments

Comments
 (0)