Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Optimize chart rendering with solid fills
rcourtman48026e4911a0
diff --git a/frontend-modern/src/components/shared/HistoryChart.tsx b/frontend-modern/src/components/shared/HistoryChart.tsxindex 3f9e2822b1..794545eeb3 100644--- a/frontend-modern/src/components/shared/HistoryChart.tsx+++ b/frontend-modern/src/components/shared/HistoryChart.tsx@@ -301,10 +301,7 @@ export const HistoryChart: Component<HistoryChartProps> = (props) => {}ctx.closePath();- const gradient = ctx.createLinearGradient(0, 0, 0, h);- gradient.addColorStop(0, `${mainColor}66`); // 40%- gradient.addColorStop(1, `${mainColor}11`); // 6%- ctx.fillStyle = gradient;+ ctx.fillStyle = `${mainColor}66`; // 40% opacity solid fillctx.fill();// Stroke line@@ -570,7 +567,7 @@ export const HistoryChart: Component<HistoryChartProps> = (props) => {{/* Pro Lock Overlay */}<Show when={isLocked() && !props.hideLock}><div class="absolute inset-0 z-10 flex flex-col items-center justify-center backdrop-blur-sm bg-white/60 dark:bg-gray-900/60 rounded-lg">- <div class="bg-gradient-to-br from-indigo-500 to-purple-600 rounded-full p-3 shadow-lg mb-3">+ <div class="bg-indigo-500 rounded-full p-3 shadow-lg mb-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>diff --git a/frontend-modern/src/components/shared/Sparkline.tsx b/frontend-modern/src/components/shared/Sparkline.tsxindex 61ba1958cd..9f6e639f54 100644--- a/frontend-modern/src/components/shared/Sparkline.tsx+++ b/frontend-modern/src/components/shared/Sparkline.tsx@@ -191,12 +191,8 @@ export const Sparkline: Component<SparklineProps> = (props) => {points.push({ x, y });});- // Draw gradient fill- const gradient = ctx.createLinearGradient(0, 0, 0, h);- gradient.addColorStop(0, `${color}5A`); // 35% opacity at top- gradient.addColorStop(1, `${color}1F`); // 12% opacity at bottom-- ctx.fillStyle = gradient;+ // Draw solid fill+ ctx.fillStyle = `${color}5A`; // 35% opacity solid fillctx.beginPath();ctx.moveTo(points[0].x, h); // Start at bottom leftpoints.forEach(p => ctx.lineTo(p.x, p.y));