From 7b496a5b4ad72c0f332d50d0addc8d98671c4f43 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Fri, 14 Apr 2023 18:02:05 +0100 Subject: [PATCH] Server admin: lists are displayed as word-wrapped CSV --- jsx/src/components/ServerDashboard/ServerDashboard.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jsx/src/components/ServerDashboard/ServerDashboard.jsx b/jsx/src/components/ServerDashboard/ServerDashboard.jsx index b9428155..723005cf 100644 --- a/jsx/src/components/ServerDashboard/ServerDashboard.jsx +++ b/jsx/src/components/ServerDashboard/ServerDashboard.jsx @@ -236,7 +236,8 @@ const ServerDashboard = (props) => { break; } if (Array.isArray(value)) { - value.sort(); + // cast arrays (e.g. roles, groups) to string + value = value.sort().join(", "); } result[key] = value; return result; @@ -253,6 +254,7 @@ const ServerDashboard = (props) => { }} valueStyle={{ padding: "4px", + whiteSpace: "unset", }} data={sortedData} />