From 32ce8884ba2c5310fa3c24b6a798c1573ea9ed25 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 26 Oct 2023 13:29:28 +0200 Subject: 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. --- plugins/mod_admin_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3