Add vertical spacing to latency figure and stats line in host row

This commit is contained in:
2026-02-26 19:09:46 +07:00
parent d9556e3cfd
commit 2861de3c6e

View File

@@ -558,11 +558,11 @@ function hostRowHTML(host, index, showPin = true) {
<div class="w-3 h-3 rounded-full flex-shrink-0" style="background-color: ${latencyHex(null)}"></div>
<span class="font-medium text-white truncate">${host.name}</span>
</div>
<div class="latency-value text-4xl font-bold tabular-nums text-right" data-host="${index}">
<div class="latency-value text-4xl font-bold tabular-nums text-right mt-1" data-host="${index}">
<span class="text-gray-500">---</span>
</div>
<a href="${host.url}" target="_blank" rel="noopener" class="text-xs text-gray-500 truncate block col-span-2">${host.url}</a>
<div class="status-text text-xs text-gray-500 whitespace-nowrap text-right col-span-2" data-host="${index}">waiting...</div>
<div class="status-text text-xs text-gray-500 whitespace-nowrap text-right col-span-2 mt-1" data-host="${index}">waiting...</div>
</div>
<div class="flex-grow sparkline-container rounded overflow-hidden border border-gray-700/30">
<canvas class="sparkline-canvas w-full" data-host="${index}" height="${CONFIG.canvasHeight}"></canvas>