aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-01-29 18:57:28 +0100
committerKim Alvefur <zash@zash.se>2023-01-29 18:57:28 +0100
commit5c676bab58d9f66155cf0738a8f835de845c44e2 (patch)
treeb96b466e9a6aed95c8d7356462f8830a80da29f0 /plugins
parent6e120ad485abaea9a920ba0dad37366188d1570c (diff)
downloadprosody-5c676bab58d9f66155cf0738a8f835de845c44e2.tar.gz
prosody-5c676bab58d9f66155cf0738a8f835de845c44e2.zip
mod_admin_shell: Make Role and Affiliation columns the same width for aesthetics
The length of the title "Affiliation" made them both close enough that it looked off.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 1b28029b..04e35a23 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -1402,7 +1402,7 @@ function def_env.muc:occupants(room_jid, filter)
local print = self.session.print;
local row = format_table({
- { title = "Role"; width = #"participant"; key = "role" }; -- longest role name
+ { title = "Role"; width = 12; key = "role" }; -- longest role name
{ title = "JID"; width = "75%"; key = "bare_jid" };
{ title = "Nickname"; width = "25%"; key = "nick"; mapper = jid_resource };
}, self.session.width);
@@ -1434,7 +1434,7 @@ function def_env.muc:affiliations(room_jid, filter)
local print = self.session.print;
local row = format_table({
- { title = "Affiliation"; width = #"outcast" }; -- longest affiliation name
+ { title = "Affiliation"; width = 12 }; -- longest affiliation name
{ title = "JID"; width = "75%" };
{ title = "Nickname"; width = "25%"; key = "reserved_nickname" };
}, self.session.width);