Changeset

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
parents 13286:8b3da19b0aea
children 13288:9a371b046e58
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;