# HG changeset patch # User Kim Alvefur # Date 1675015048 -3600 # Node ID 70ee82579076b84873b45f537e9f6ea9780d7092 # Parent d5cb86b84d12f2be4572736d593856df3f927f20 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. diff -r d5cb86b84d12 -r 70ee82579076 plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Sun Jan 29 18:31:25 2023 +0100 +++ b/plugins/mod_admin_shell.lua Sun Jan 29 18:57:28 2023 +0100 @@ -1402,7 +1402,7 @@ 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 @@ 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);