diff options
author | Kim Alvefur <zash@zash.se> | 2023-10-26 13:29:28 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-10-26 13:29:28 +0200 |
commit | 32ce8884ba2c5310fa3c24b6a798c1573ea9ed25 (patch) | |
tree | f905726d1864599d49e668de8505e8e3fb004ca1 /plugins/mod_admin_shell.lua | |
parent | b029c17c914638db0fa8f395b7394f5c78595cbd (diff) | |
download | prosody-32ce8884ba2c5310fa3c24b6a798c1573ea9ed25.tar.gz prosody-32ce8884ba2c5310fa3c24b6a798c1573ea9ed25.zip |
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.
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index bc073f52..e21f3deb 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1018,7 +1018,7 @@ available_columns = { 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; |