fix(monitor): keep overview Y-axis titles inside charts

This commit is contained in:
martino
2026-10-27 02:48:25 +01:00
parent 688b7f54bc
commit e6d39f6015
4 changed files with 122 additions and 3 deletions
@@ -291,7 +291,7 @@ export function NetworkTrafficChart({
<>
<MetricsCacheNotice lastChecked={staleAt} />
<ResponsiveContainer width="100%" height={300}>
<AreaChart data={data} margin={{ bottom: 80 }}>
<AreaChart data={data} margin={{ bottom: 80, left: 10 }}>
<CartesianGrid strokeDasharray="3 3" stroke="currentColor" className="text-border" />
<XAxis
dataKey="time"
+2 -2
View File
@@ -426,7 +426,7 @@ export function NodeMetricsCharts() {
</CardHeader>
<CardContent className="px-0 md:px-6">
<ResponsiveContainer width="100%" height={300}>
<AreaChart data={data} margin={{ bottom: 60, left: 0, right: 0 }}>
<AreaChart data={data} margin={{ bottom: 60, left: 10, right: 10 }}>
<CartesianGrid strokeDasharray="3 3" stroke="currentColor" className="text-border" />
<XAxis
dataKey="time"
@@ -509,7 +509,7 @@ export function NodeMetricsCharts() {
</CardHeader>
<CardContent className="px-0 pr-2 md:px-6">
<ResponsiveContainer width="100%" height={300}>
<AreaChart data={data} margin={{ bottom: 60, left: 0, right: 0 }}>
<AreaChart data={data} margin={{ bottom: 60, left: 10, right: 0 }}>
<CartesianGrid strokeDasharray="3 3" stroke="currentColor" className="text-border" />
<XAxis
dataKey="time"