Fix OpenBridge stream pills stretching full cell width
.call has width:100% for use in fixed-width slot columns, but in the OpenBridge table multiple spans share one <td>. Override with width:auto so pills size to their content and flow inline. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
6c1c810b42
commit
bebb3b1900
1 file changed
+1
-1
@@ -175,7 +175,7 @@ function renderOpenbridges(){
|
||||
let h='<table><tr><th>System</th><th>Network / Target</th><th>Active Streams</th></tr>';
|
||||
for(const n of names){
|
||||
const o=ST.systems[n], streams=activeList(n);
|
||||
const cells = streams.length ? streams.map(e=>'<span class="call '+(e.trx==='TX'?'tx':'rx')+'" style="display:inline-block;margin:2px">'+e.trx+' · '+idName(e.src_alias,e.src)+' → '+idName(e.dst_alias,e.dst)+'</span>').join(' ') : '<span class="call idle" style="display:inline-block">— idle —</span>';
|
||||
const cells = streams.length ? streams.map(e=>'<span class="call '+(e.trx==='TX'?'tx':'rx')+'" style="display:inline-block;width:auto;margin:2px">'+e.trx+' · '+idName(e.src_alias,e.src)+' → '+idName(e.dst_alias,e.dst)+'</span>').join(' ') : '<span class="call idle" style="display:inline-block;width:auto">— idle —</span>';
|
||||
h+='<tr><td class="sysname">'+esc(n)+'</td><td class="mono">ID '+esc(o.NETWORK_ID)+'<div class="sub">'+esc(o.TARGET_IP)+':'+esc(o.TARGET_PORT)+'</div></td><td>'+cells+'</td></tr>';
|
||||
}
|
||||
el('openbridges').innerHTML=h+'</table>';
|
||||
|
||||
Reference in new issue
Block a user