1
- import { LocationResponseDialog } from "@app/components/Dialog/LocationResponseDialog" ;
2
- import { NodeOptionsDialog } from "@app/components/Dialog/NodeOptionsDialog" ;
3
- import { TracerouteResponseDialog } from "@app/components/Dialog/TracerouteResponseDialog" ;
4
- import Footer from "@app/components/UI/Footer" ;
1
+ import { LocationResponseDialog } from "@app/components/Dialog/LocationResponseDialog.tsx " ;
2
+ import { NodeOptionsDialog } from "@app/components/Dialog/NodeOptionsDialog.tsx " ;
3
+ import { TracerouteResponseDialog } from "@app/components/Dialog/TracerouteResponseDialog.tsx " ;
4
+ import Footer from "@app/components/UI/Footer.tsx " ;
5
5
import { Sidebar } from "@components/Sidebar.tsx" ;
6
6
import { Avatar } from "@components/UI/Avatar.tsx" ;
7
7
import { Mono } from "@components/generic/Mono.tsx" ;
@@ -135,21 +135,21 @@ const NodesPage = (): JSX.Element => {
135
135
. match ( / .{ 1 , 2 } / g)
136
136
?. join ( ":" ) ?? "UNK" }
137
137
</ Mono > ,
138
- < Fragment key = "lastHeard" >
138
+ < Mono className = "px-4" key = "lastHeard" >
139
139
{ node . lastHeard === 0 ? (
140
- < p > Never</ p >
140
+ < p className = "px-4" > Never</ p >
141
141
) : (
142
142
< TimeAgo timestamp = { node . lastHeard * 1000 } />
143
143
) }
144
- </ Fragment > ,
144
+ </ Mono > ,
145
145
< Mono key = "snr" >
146
146
{ node . snr } db/
147
147
{ Math . min ( Math . max ( ( node . snr + 10 ) * 5 , 0 ) , 100 ) } %/
148
148
{ ( node . snr + 10 ) * 5 } raw
149
149
</ Mono > ,
150
150
< Mono key = "pki" >
151
151
{ node . user ?. publicKey && node . user ?. publicKey . length > 0 ? (
152
- < LockIcon className = "text-green-600" />
152
+ < LockIcon className = "text-green-600 mx-auto " />
153
153
) : (
154
154
< LockOpenIcon className = "text-yellow-300 mx-auto" />
155
155
) }
@@ -158,7 +158,7 @@ const NodesPage = (): JSX.Element => {
158
158
{ node . lastHeard !== 0
159
159
? node . viaMqtt === false && node . hopsAway === 0
160
160
? "Direct"
161
- : `${ node . hopsAway . toString ( ) } ${
161
+ : `${ node . hopsAway ? .toString ( ) } ${
162
162
node . hopsAway > 1 ? "hops" : "hop"
163
163
} away`
164
164
: "-" }
0 commit comments