mod_admin_shell: Make 'Role' column dynamically sized
authorKim Alvefur <zash@zash.se>
Thu, 26 Oct 2023 13:29:28 +0200
changeset 13291 1e2d65403867
parent 13290 8b3da19b0aea
child 13292 9a371b046e58
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
--- 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;