Update notification service

This commit is contained in:
MacRimi
2026-03-07 23:18:25 +01:00
parent 424a63011b
commit 2647550324
2 changed files with 15 additions and 12 deletions
+5 -4
View File
@@ -408,14 +408,13 @@ export function NetworkMetrics() {
{latencyData?.data && latencyData.data.length > 0 && (
<div className="h-[40px] w-full">
<ResponsiveContainer width="100%" height="100%">
<AreaChart data={latencyData.data.slice(-30)} margin={{ top: 0, right: 0, left: 0, bottom: 0 }}>
<AreaChart data={latencyData.data.slice(-30)} margin={{ top: 2, right: 0, left: 0, bottom: 0 }}>
<defs>
<linearGradient id="latencySparkGradient" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stopColor="#3b82f6" stopOpacity={0.3} />
<stop offset="100%" stopColor="#3b82f6" stopOpacity={0} />
<stop offset="0%" stopColor="#3b82f6" stopOpacity={0.4} />
<stop offset="100%" stopColor="#3b82f6" stopOpacity={0.05} />
</linearGradient>
</defs>
<YAxis hide domain={['dataMin - 5', 'dataMax + 5']} />
<Area
type="monotone"
dataKey="value"
@@ -423,6 +422,8 @@ export function NetworkMetrics() {
strokeWidth={1.5}
fill="url(#latencySparkGradient)"
dot={false}
isAnimationActive={false}
baseValue="dataMin"
/>
</AreaChart>
</ResponsiveContainer>