Server admin: lists are displayed as word-wrapped CSV

This commit is contained in:
Simon Li
2023-04-14 18:02:05 +01:00
parent 64e7705053
commit 7b496a5b4a

View File

@@ -236,7 +236,8 @@ const ServerDashboard = (props) => {
break; break;
} }
if (Array.isArray(value)) { if (Array.isArray(value)) {
value.sort(); // cast arrays (e.g. roles, groups) to string
value = value.sort().join(", ");
} }
result[key] = value; result[key] = value;
return result; return result;
@@ -253,6 +254,7 @@ const ServerDashboard = (props) => {
}} }}
valueStyle={{ valueStyle={{
padding: "4px", padding: "4px",
whiteSpace: "unset",
}} }}
data={sortedData} data={sortedData}
/> />