From 141d380abf42613ab70d03305a18a5b07ac4bed7 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sat, 1 Aug 2026 02:49:02 +0500 Subject: [PATCH] multiline for SSIDs and IPs --- frontend/src/pages/Devices.tsx | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/frontend/src/pages/Devices.tsx b/frontend/src/pages/Devices.tsx index 31c281e..1a0d070 100644 --- a/frontend/src/pages/Devices.tsx +++ b/frontend/src/pages/Devices.tsx @@ -24,15 +24,27 @@ import { function Ssids({ ssids }: { ssids: string[] }) { if (ssids.length === 0) return - const extra = ssids.length - 1 return ( - - - {ssids[0]} - {extra > 0 && ( - (and {extra} more…) - )} - +
+ {ssids.map((ssid) => ( + + + {ssid} + + ))} +
+ ) +} + +function Ips({ value }: { value: string | null }) { + const ips = value?.split(',').map((ip) => ip.trim()).filter(Boolean) ?? [] + if (ips.length === 0) return + return ( +
+ {ips.map((ip) => ( + {ip} + ))} +
) } @@ -99,7 +111,9 @@ export function Devices() { devices.map((d) => ( {d.ap_mac} - {d.nasipaddress ?? '—'} + + +