Diff

plugins/mod_admin_shell.lua @ 13287:1e2d65403867

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.
author Kim Alvefur <zash@zash.se>
date Thu, 26 Oct 2023 13:29:28 +0200
parent 13170:082c7d856e61
child 13334:aefcb6b4f47d
line wrap: on
line diff
--- 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;