mod_admin_shell: Make 'Role' column dynamically sized
Some of the new roles don't quite fit nicely into 4 characters
(excluding ellipsis). Given the ability to dynamically add additional
roles from the config and possibly from modules, it seems better to just
make it a relative size since we can't know how long they will be.
--- a/plugins/mod_admin_shell.lua Tue Oct 24 09:24:01 2023 +0100
+++ b/plugins/mod_admin_shell.lua Thu Oct 26 13:29:28 2023 +0200
@@ -1018,7 +1018,7 @@
role = {
title = "Role";
description = "Session role with 'prosody:' prefix removed";
- width = #"admin";
+ width = "1p";
key = "role";
mapper = function(role)
local name = role and role.name;