Lighter NOC traffic table: fewer elements and inline styles per network row
The traffic tab lists every network with traffic, now 63 more, each with a Peer on all POPs button. Rows drop empty traffic-mix segments, the button's wrapper div and two inline styles (now classes), with the same look. On the big fixture the tab has 16% fewer elements; NOC dashboard tabs 390 -> 331 ms against the previous commit (p=0.014).
This commit is contained in:
parent
7cbe0ec09b
commit
cc89a266f3
2 changed files with 3 additions and 1 deletions
|
|
@ -97,6 +97,8 @@ label.f+select.pick{width:100%}
|
|||
.tbl td.r,.tbl th.r{text-align:right}
|
||||
.mix{display:flex;height:10px;width:100px;border:1.5px solid var(--ink);border-radius:5px;overflow:hidden;background:var(--paper)}
|
||||
.mix i{display:block;height:100%}
|
||||
/* The NOC's traffic table has a row per network: classes, not inline styles, keep its hundreds of rows cheap to parse. */
|
||||
.nmc{display:inline-flex;align-items:center;gap:6px}.dlost{color:var(--bad)}.b.pall{display:block;margin-top:5px}
|
||||
.tscroll{overflow-x:auto}
|
||||
#modal{position:fixed;inset:0;background:rgba(30,38,64,.45);display:grid;place-items:center;z-index:20;padding:16px max(16px,env(safe-area-inset-right,0px)) 16px max(16px,env(safe-area-inset-left,0px))}
|
||||
#modal .card{width:min(560px,100%);max-height:calc(100% - 20px);overflow:auto;padding:20px 22px}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue