fix: page style

This commit is contained in:
engigu
2026-01-08 21:29:26 +08:00
parent 6934d084ff
commit 9f0eb80cb9
4 changed files with 73 additions and 21 deletions
+10 -10
View File
@@ -110,7 +110,7 @@ const renderLineChart = () => {
],
chart: {
type: 'line',
height: 240,
height: 300,
toolbar: { show: false },
background: 'transparent',
animations: {
@@ -221,7 +221,7 @@ const renderLineChart = () => {
</div>`
}
},
responsive: [{ breakpoint: 768, options: { chart: { height: 200 }, legend: { position: 'bottom', offsetY: 0 } } }]
responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom', offsetY: 0 } } }]
}
lineChart = new ApexCharts(container, options)
lineChart.render()
@@ -247,7 +247,7 @@ const renderPieChart = () => {
series: taskStats.value.map(item => item.count),
chart: {
type: 'donut',
height: 200,
height: 260,
toolbar: { show: false },
background: 'transparent',
animations: {
@@ -334,7 +334,7 @@ const renderPieChart = () => {
style: { fontSize: '12px', fontFamily: 'Inter, sans-serif' },
y: { formatter: (val: number) => val + ' 次' }
},
responsive: [{ breakpoint: 768, options: { chart: { height: 200 }, legend: { position: 'bottom' } } }]
responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom' } } }]
}
pieChart = new ApexCharts(container, options)
pieChart.render()
@@ -401,13 +401,13 @@ onUnmounted(() => {
</div>
<div class="grid gap-4 lg:grid-cols-10">
<Card class="lg:col-span-7 h-[300px] sm:h-[340px]">
<Card class="lg:col-span-7 h-[400px] sm:h-[400px]">
<CardHeader class="pb-2">
<CardTitle class="text-base sm:text-lg">执行统计</CardTitle>
<CardDescription class="text-xs sm:text-sm">最近{{ chartDays }}天任务执行情况</CardDescription>
</CardHeader>
<CardContent>
<div id="stats-chart" class="w-full h-[200px] sm:h-[240px]">
<CardContent class="pb-8">
<div id="stats-chart" class="w-full h-[300px] sm:h-[300px]">
<div v-if="!chartsLoaded" class="h-full flex items-center justify-center text-muted-foreground text-sm">
加载中...
</div>
@@ -415,13 +415,13 @@ onUnmounted(() => {
</CardContent>
</Card>
<Card class="lg:col-span-3 h-[300px] sm:h-[340px]">
<Card class="lg:col-span-3 h-[400px] sm:h-[400px]">
<CardHeader class="pb-0">
<CardTitle class="text-base sm:text-lg">任务占比</CardTitle>
<CardDescription class="text-xs sm:text-sm">最近{{ chartDays }}天任务执行分布</CardDescription>
</CardHeader>
<CardContent class="pt-0">
<div id="pie-chart" class="w-full h-[200px] sm:h-[240px]">
<CardContent class="pt-0 pb-8">
<div id="pie-chart" class="w-full h-[300px] sm:h-[300px]">
<div v-if="!chartsLoaded" class="h-full flex items-center justify-center text-muted-foreground text-sm">
加载中...
</div>