Fix width of checkbox column in empty tables

This commit is contained in:
Jeremy Stretch 2024-01-05 16:22:07 -05:00
parent bcf1596184
commit fb929051f3

View File

@ -161,6 +161,9 @@ class ToggleColumn(tables.CheckBoxColumn):
visible = kwargs.pop('visible', False) visible = kwargs.pop('visible', False)
if 'attrs' not in kwargs: if 'attrs' not in kwargs:
kwargs['attrs'] = { kwargs['attrs'] = {
'th': {
'class': 'w-1',
},
'td': { 'td': {
'class': 'w-1', 'class': 'w-1',
}, },