Changeset

13037:635ed9a362ee

mod_admin_shell: Dynamically size JIDs and hosts Reasoning: a hostname is one part, a JID is 3 parts.
author Kim Alvefur <zash@zash.se>
date Fri, 07 Apr 2023 12:58:02 +0200
parents 13036:1612c7f7dd55
children 13038:83b93ad08b23
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Fri Apr 07 12:48:17 2023 +0200
+++ b/plugins/mod_admin_shell.lua	Fri Apr 07 12:58:02 2023 +0200
@@ -771,7 +771,7 @@
 	jid = {
 		title = "JID";
 		description = "Full JID of user session";
-		width = 32;
+		width = "3p";
 		key = "full_jid";
 		mapper = function(full_jid, session) return full_jid or get_jid(session) end;
 	};
@@ -779,7 +779,7 @@
 		title = "Host";
 		description = "Local hostname";
 		key = "host";
-		width = 22;
+		width = "1p";
 		mapper = function(host, session)
 			return host or get_s2s_hosts(session) or "?";
 		end;
@@ -787,7 +787,7 @@
 	remote = {
 		title = "Remote";
 		description = "Remote hostname";
-		width = 22;
+		width = "1p";
 		mapper = function(_, session)
 			return select(2, get_s2s_hosts(session));
 		end;
@@ -912,7 +912,7 @@
 	sni = {
 		title = "SNI";
 		description = "Hostname requested in TLS";
-		width = 22; -- same as host, remote etc
+		width = "1p"; -- same as host, remote etc
 		mapper = function(_, session)
 			if not session.conn then return end
 			local sock = session.conn:socket();