diff options
author | Kim Alvefur <zash@zash.se> | 2023-04-07 13:07:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-04-07 13:07:00 +0200 |
commit | c49057902505d1c95ad8e415163c7e22efe98e5c (patch) | |
tree | 878b1571a5f4941585acc51e642dfbe698001d1c | |
parent | 65dffa88a8823412edea52129345a2d773067480 (diff) | |
download | prosody-c49057902505d1c95ad8e415163c7e22efe98e5c.tar.gz prosody-c49057902505d1c95ad8e415163c7e22efe98e5c.zip |
mod_admin_shell: Make default column width 1 part
These gets used for usernames, resources and other random session fields
that don't have a column definition in `available_columns`
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 291aa09b..6309db64 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -999,7 +999,7 @@ local function get_colspec(colspec, default) local columns = {}; for i, col in pairs(colspec or default) do if type(col) == "string" then - columns[i] = available_columns[col] or { title = capitalize(col); width = 20; key = col }; + columns[i] = available_columns[col] or { title = capitalize(col); width = "1p"; key = col }; elseif type(col) ~= "table" then return false, ("argument %d: expected string|table but got %s"):format(i, type(col)); else |