Software /
code /
prosody
Changeset
12869:70ee82579076
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 29 Jan 2023 18:57:28 +0100 |
parents | 12868:d5cb86b84d12 |
children | 12870:56397f3b58c1 |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);