fix padding on last heard

This commit is contained in:
Hunter275
2025-03-03 20:33:23 -05:00
committed by Dan Ditomaso
parent 9ad6c049f2
commit 7c84a582ba
+7 -5
View File
@@ -137,11 +137,13 @@ const NodesPage = () => {
.match(/.{1,2}/g)
?.join(":") ?? "UNK"}
</Mono>,
<Fragment key="lastHeard">
{node.lastHeard === 0
? <p>Never</p>
: <TimeAgo timestamp={node.lastHeard * 1000} />}
</Fragment>,
<Mono className="px-4" key="lastHeard">
{node.lastHeard === 0 ? (
<p>Never</p>
) : (
<TimeAgo timestamp={node.lastHeard * 1000} />
)}
</Mono>,
<Mono key="snr">
{node.snr}db/
{Math.min(Math.max((node.snr + 10) * 5, 0), 100)}%/