aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-10-26 13:29:28 +0200
committerKim Alvefur <zash@zash.se>2023-10-26 13:29:28 +0200
commit32ce8884ba2c5310fa3c24b6a798c1573ea9ed25 (patch)
treef905726d1864599d49e668de8505e8e3fb004ca1 /plugins
parentb029c17c914638db0fa8f395b7394f5c78595cbd (diff)
downloadprosody-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')
-rw-r--r--plugins/mod_admin_shell.lua2
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;