diff --git a/src/renderer/src/components/connections/connection-item.tsx b/src/renderer/src/components/connections/connection-item.tsx index 7e40faf..12d374f 100644 --- a/src/renderer/src/components/connections/connection-item.tsx +++ b/src/renderer/src/components/connections/connection-item.tsx @@ -24,75 +24,77 @@ const ConnectionItem: React.FC = (props) => { return (
- { - setSelected(info) - setIsDetailModalOpen(true) - }} - > -
-
- - - {info.metadata.type}({info.metadata.network.toUpperCase()}) - -
- {info.metadata.process || info.metadata.sourceIP} - {' -> '} - {info.metadata.host || - info.metadata.sniffHost || - info.metadata.destinationIP || - info.metadata.remoteDestination} -
- - {dayjs(info.start).fromNow()} - -
- { - e.currentTarget.scrollLeft += e.deltaY - }} - className="overscroll-contain pt-2 flex justify-start gap-1 overflow-x-auto no-scrollbar" - > - - {info.chains[0]} - - - ↑ {calcTraffic(info.upload)} ↓ {calcTraffic(info.download)} - - {info.uploadSpeed !== 0 || info.downloadSpeed !== 0 ? ( - - ↑ {calcTraffic(info.uploadSpeed || 0)}/s ↓ {calcTraffic(info.downloadSpeed || 0)} - /s +
+ { + setSelected(info) + setIsDetailModalOpen(true) + }} + > +
+
+ + + {info.metadata.type}({info.metadata.network.toUpperCase()}) - ) : null} - +
+ {info.metadata.process || info.metadata.sourceIP} + {' -> '} + {info.metadata.host || + info.metadata.sniffHost || + info.metadata.destinationIP || + info.metadata.remoteDestination} +
+ + {dayjs(info.start).fromNow()} + +
+ { + e.currentTarget.scrollLeft += e.deltaY + }} + className="overscroll-contain pt-2 flex justify-start gap-1 overflow-x-auto no-scrollbar" + > + + {info.chains[0]} + + + ↑ {calcTraffic(info.upload)} ↓ {calcTraffic(info.download)} + + {info.uploadSpeed !== 0 || info.downloadSpeed !== 0 ? ( + + ↑ {calcTraffic(info.uploadSpeed || 0)}/s ↓ {calcTraffic(info.downloadSpeed || 0)} + /s + + ) : null} + +
- -
- + + +
) }