From 49f141d64af6ce274ae68e34e1ef6fb9aabc626a Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sun, 22 Jun 2025 13:21:34 -0500 Subject: [PATCH] Better calculation for number of cards per column. Fixes #218 --- frontend/src/pages/Stats.jsx | 45 +++++++++++++++--------------------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/frontend/src/pages/Stats.jsx b/frontend/src/pages/Stats.jsx index ba9829fe..f6ec1392 100644 --- a/frontend/src/pages/Stats.jsx +++ b/frontend/src/pages/Stats.jsx @@ -854,18 +854,15 @@ const ChannelsPage = () => { }, []); setClients(clientStats); }, [channelStats, channels, channelsByUUID, streamProfiles]); - return ( - {Object.keys(activeChannels).length === 0 ? ( { No active channels currently streaming - ) : ( - Object.values(activeChannels).map((channel) => ( - - - - )) + ) : (Object.values(activeChannels).map((channel) => ( + )) )} - + ); };