Remove Geo From Roster
This commit is contained in:
@@ -241,7 +241,6 @@ func renderPeerView(t Theme, roster []viz.Peer, events []viz.FeedItem, cursor, h
|
||||
lines = append(lines, lipgloss.NewStyle().Bold(true).Foreground(t.Honey).Render("── Live roster ──"))
|
||||
lines = append(lines, joinRow(
|
||||
hdr.Render(padCellLeft("STATUS", colWStatus)),
|
||||
hdr.Render(padCellLeft("GEO", colWGeo)),
|
||||
hdr.Render(padCellLeft("ATTACKS/HR", colWAtkHr)),
|
||||
hdr.Render("PEER"),
|
||||
))
|
||||
@@ -301,13 +300,8 @@ func renderRosterRow(t Theme, p viz.Peer, width int, operator bool) string {
|
||||
if operator && p.PeerPublicKeyHex != "" {
|
||||
peerID = p.PeerPublicKeyHex
|
||||
}
|
||||
geo := p.Geo
|
||||
if geo == "" {
|
||||
geo = "—"
|
||||
}
|
||||
fixed := joinRow(
|
||||
styleCell(status, colWStatus, lipgloss.NewStyle().Foreground(col)),
|
||||
padCellLeft(geo, colWGeo),
|
||||
padCellRight(viz.FormatCount(p.AttacksLastHour), colWAtkHr),
|
||||
)
|
||||
peerW := remainingWidth(width, fixed)
|
||||
|
||||
Reference in New Issue
Block a user