fix: static HTML label spans outside swap zone, chart only returns SVG + label update script
This commit is contained in:
@@ -57,7 +57,11 @@
|
||||
<!-- Latency chart -->
|
||||
<div class="bg-gray-900 border border-gray-800 rounded-xl p-4 mb-8">
|
||||
<h3 class="text-sm text-gray-400 mb-3">Response Time</h3>
|
||||
<div id="latency-chart" class="h-32 w-full"><%~ it.latencyChartSSR(chartPings) %></div>
|
||||
<div class="relative h-32 w-full">
|
||||
<span id="chart-label-max" class="absolute top-0 left-1 text-gray-500 text-xs leading-none pointer-events-none z-10"><%= latencies.length ? Math.max(...latencies) + 'ms' : '' %></span>
|
||||
<span id="chart-label-min" class="absolute bottom-0 left-1 text-gray-500 text-xs leading-none pointer-events-none z-10"><%= latencies.length ? Math.min(...latencies) + 'ms' : '' %></span>
|
||||
<div id="latency-chart" class="w-full h-full"><%~ it.latencyChartSSR(chartPings) %></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Status bar -->
|
||||
|
||||
Reference in New Issue
Block a user