fix: pin sparkline container to 120x32 to prevent layout shift on update
This commit is contained in:
parent
ed5e213b1a
commit
93c3a1e84a
|
|
@ -37,7 +37,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-6 shrink-0 ml-4">
|
||||
<div class="hidden sm:block stat-sparkline"><%~ it.sparklineSSR(latencies) %></div>
|
||||
<div class="hidden sm:block stat-sparkline" style="width:120px;height:32px"><%~ it.sparklineSSR(latencies) %></div>
|
||||
<div class="text-right">
|
||||
<div class="text-sm text-gray-300 stat-latency"><%= avgLatency != null ? avgLatency + 'ms' : '—' %></div>
|
||||
<div class="text-xs text-gray-500 stat-last"><%~ m.last_ping ? it.timeAgoSSR(m.last_ping.checked_at) : 'no pings' %></div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue