diff mod_client_management/mod_client_management.lua @ 5600:c799b460f9f0

mod_client_management: Make ID column dynamically sized Its width can vary more than expected (because it can contain resources)
author Kim Alvefur <zash@zash.se>
date Fri, 14 Jul 2023 16:20:54 +0200
parents da69496180e7
children 1571c280aaef
line wrap: on
line diff
--- a/mod_client_management/mod_client_management.lua	Fri Jul 14 16:09:43 2023 +0200
+++ b/mod_client_management/mod_client_management.lua	Fri Jul 14 16:20:54 2023 +0200
@@ -438,7 +438,7 @@
 		end
 
 		local colspec = {
-			{ title = "ID"; key = "id"; width = math.max(#"client/", #"grant/") + #id.short() };
+			{ title = "ID"; key = "id"; width = "1p" };
 			{
 				title = "Software";
 				key = "user_agent";