# HG changeset patch # User Kim Alvefur # Date 1680865620 -7200 # Node ID 0f05804e974d5406d426f9e9b8e7171d90cf76de # Parent 61b00bd200749c19c4a466e0e4847aa11be1a1d4 mod_admin_shell: Make default column width 1 part These gets used for usernames, resources and other random session fields that don't have a column definition in `available_columns` diff -r 61b00bd20074 -r 0f05804e974d plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Fri Apr 07 13:04:15 2023 +0200 +++ b/plugins/mod_admin_shell.lua Fri Apr 07 13:07:00 2023 +0200 @@ -999,7 +999,7 @@ local columns = {}; for i, col in pairs(colspec or default) do if type(col) == "string" then - columns[i] = available_columns[col] or { title = capitalize(col); width = 20; key = col }; + columns[i] = available_columns[col] or { title = capitalize(col); width = "1p"; key = col }; elseif type(col) ~= "table" then return false, ("argument %d: expected string|table but got %s"):format(i, type(col)); else