Skip to content

fix(proxystatus): fixed-width leg metrics so the tree doesn't shift on updates - #4203

Merged
0pcom merged 1 commit into
skycoin:developfrom
0pcom:fix/tree-tabular-nums
Aug 26, 2026
Merged

fix(proxystatus): fixed-width leg metrics so the tree doesn't shift on updates#4203
0pcom merged 1 commit into
skycoin:developfrom
0pcom:fix/tree-tabular-nums

Conversation

@0pcom

@0pcom 0pcom commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

The status.skysocks route tree sized its route-rtt and ↑/↓ byte columns from the per-snapshot max, so as the live values streamed over the WebSocket (~1s) gained or lost a digit the columns — and the box-drawing branch and PK to their right — jumped horizontally.

Pin those mutable fields to fixed monospace widths (rtt 6, bandwidth 7) in the Go label builder and add font-variant-numeric:tabular-nums to pre.bitree, so a value crossing 1ms→342ms→1203ms or 9B→2.4K→15.3M no longer reflows the tree. The R[n] identity width stays measured since it is structural (changes only when a route is added or dropped).

…n updates

The route tree's left per-route summary sized its route-rtt and ↑/↓ byte
columns from the per-snapshot max, so as the live values streamed over the
WebSocket (~1s) changed digit count the columns — and the box-drawing branch
and PK to their right — jumped horizontally. Pin those mutable fields to fixed
monospace widths (rtt 6, bandwidth 7) and add font-variant-numeric:tabular-nums
to pre.bitree, so a value crossing 1ms→342ms→1203ms or 9B→2.4K→15.3M no longer
reflows the tree. The R[n] identity width stays measured since it is structural.
@0pcom
0pcom merged commit 0e36076 into skycoin:develop Aug 26, 2026
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant