From a14e55432319cb62d7038769f462cd5705bac613 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 7 Mar 2026 21:58:57 +0100 Subject: [PATCH] Update latency-detail-modal.tsx --- AppImage/components/latency-detail-modal.tsx | 49 ++++++++++---------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/AppImage/components/latency-detail-modal.tsx b/AppImage/components/latency-detail-modal.tsx index 94a7d039..bb7d0730 100644 --- a/AppImage/components/latency-detail-modal.tsx +++ b/AppImage/components/latency-detail-modal.tsx @@ -323,26 +323,14 @@ const generateLatencyReport = (report: ReportData) => { .exec-text h3 { font-size: 16px; margin-bottom: 4px; } .exec-text p { font-size: 12px; color: #64748b; line-height: 1.5; } - /* Latency gauge - CSS only, no SVG */ + /* Latency gauge */ .latency-gauge { - display: flex; flex-direction: column; align-items: center; flex-shrink: 0; - width: 96px; + display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 160px; } - .gauge-ring { - width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; - align-items: center; justify-content: center; flex-shrink: 0; - position: relative; - } - .gauge-ring::before { - content: ''; position: absolute; inset: 0; border-radius: 50%; - background: conic-gradient(from 180deg, #16a34a 0deg 60deg, #22c55e 60deg 90deg, #ca8a04 90deg 135deg, #dc2626 135deg 180deg, #e2e8f0 180deg 360deg); - -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px)); - mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 8px)); - } - .gauge-value { display: flex; align-items: baseline; gap: 2px; z-index: 1; } - .gauge-num { font-size: 28px; font-weight: 800; line-height: 1; } - .gauge-unit { font-size: 12px; font-weight: 600; opacity: 0.8; } - .gauge-status { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; z-index: 1; } + .gauge-value { display: flex; align-items: baseline; gap: 2px; margin-top: -10px; } + .gauge-num { font-size: 32px; font-weight: 800; line-height: 1; } + .gauge-unit { font-size: 14px; font-weight: 600; opacity: 0.8; } + .gauge-status { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; } /* Latency range display */ .latency-range { @@ -496,13 +484,26 @@ const generateLatencyReport = (report: ReportData) => {
1. Executive Summary
-
-
- ${report.isRealtime ? (realtimeStats?.avg?.toFixed(0) ?? 'N/A') : report.stats.avg} - ms -
-
${statusText}
+ + + + + + + + + + + + + 0 + 300+ + +
+ ${report.isRealtime ? (realtimeStats?.avg?.toFixed(0) ?? 'N/A') : report.stats.avg} + ms
+
${statusText}

Network Latency Assessment${report.isRealtime ? ' (Real-time)' : ''}